diff --git a/include/cfgledger.inc.php b/include/cfgledger.inc.php index aee29ec83..0ca66b31e 100644 --- a/include/cfgledger.inc.php +++ b/include/cfgledger.inc.php @@ -51,10 +51,10 @@ if ( $action_frm == 'update') try { $ledger->set_ledger_id($http->post('p_jrn',"number")); - if ( $ledger->load() == -1) throw new Exception (_('Journal inexistant')); + if ( $ledger->load() == false ) throw new Exception (_('Journal inexistant')); $ledger->verify_ledger($_POST); $ledger->update($_POST); - $show_menu=1; + $show_menu=1; } catch (Exception $e) { record_log($e->getMessage()); @@ -129,7 +129,7 @@ switch ($sa) echo '
'; echo '
'; echo $ledger->display_ledger(); - echo HtmlInput::hidden('action_frm',''); + echo HtmlInput::hidden('action_frm',''); echo ' ';