diff --git a/api.php b/api.php index 10fc6af..545a3e8 100644 --- a/api.php +++ b/api.php @@ -99,7 +99,7 @@ if ( \S::get( 'action' ) == 'get_finances_categories' ) echo json_encode( $categories ); exit; } -echo 'a'; + if ( \S::get( 'action' ) == 'add_finance_operation' ) { if ( !\S::get( 'operation_date' ) || !\S::get( 'net_value' ) || !\S::get( 'product_name' ) || !\S::get( 'category_id' ) )