Mysqli errors: Trying to access array offset on value of type bool. Fixed. Please...
[fa-stable.git] / gl / bank_account_reconcile.php
index a5738946451ea7385e6890a128de1b3dd48d939b..6875e068e4b6e2d2949d7ff51e71da2f9b78b891 100644 (file)
@@ -175,7 +175,7 @@ if ($id != -1)
        change_tpl_flag($id);
 
 
-if (isset($_POST['Reconcile'])) {
+if (isset($_POST['last']) && isset($_POST['Reconcile'])) {
        set_focus('bank_date');
        foreach($_POST['last'] as $id => $value)
                if ($value != check_value('rec_'.$id))
@@ -184,7 +184,7 @@ if (isset($_POST['Reconcile'])) {
     $Ajax->activate('_page_body');
 }
 
-if (isset($_POST['ReconcileAll'])) {
+if (isset($_POST['last']) && isset($_POST['ReconcileAll'])) {
        set_focus('bank_date');
        foreach($_POST['last'] as $id => $value)
                set_tpl_flag($id);