From: Joe Hunt Date: Tue, 31 Oct 2017 23:26:18 +0000 (+0100) Subject: Index and construct fixes X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=ae801c6ee356379210843236a9fbed4b464a614b Index and construct fixes --- diff --git a/includes/current_user.inc b/includes/current_user.inc index 45133344..74a8035f 100644 --- a/includes/current_user.inc +++ b/includes/current_user.inc @@ -511,7 +511,7 @@ function user_date_sep() { global $SysPrefs; - return isset($_SESSION["wa_current_user"]) ? $_SESSION["wa_current_user"]->prefs->date_sep() : $SysPrefs->dflt_date_sep; + return isset($_SESSION["wa_current_user"]->prefs->date_sep) ? $_SESSION["wa_current_user"]->prefs->date_sep() : $SysPrefs->dflt_date_sep; } function user_tho_sep() diff --git a/includes/errors.inc b/includes/errors.inc index 1a66d96f..a4618e8d 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -32,7 +32,7 @@ function get_backtrace($html = false, $skip=0) } $str .= $tr['function'].'('; - if(is_array($tr['args'])) { + if(isset($tr['args']) && is_array($tr['args'])) { $args = array(); foreach($tr['args'] as $n=>$a) { if (is_object($tr['args'][$n]))