diff --git a/app/Domains/Transaction/Actions/SearchTransactions.php b/app/Domains/Transaction/Actions/SearchTransactions.php index 6a599b08..9bc30580 100644 --- a/app/Domains/Transaction/Actions/SearchTransactions.php +++ b/app/Domains/Transaction/Actions/SearchTransactions.php @@ -37,17 +37,16 @@ public function hasValidConditions($conditions) { if (!$condition) { continue; } - try { foreach ($condition as $param) { + try { if ($param && $param['operator'] && $param['value']) { return true; } - + } catch (Exception $e) { + print_r($param); + Log::error($e); + continue; } - } catch (Exception $e) { - print_r($param); - Log::error($e); - continue; } } }