Index and construct fixes
[fa-stable.git] / includes / current_user.inc
index 4513334479ae02852a6ede0b8d50c14681d9ad55..74a8035feac3c5b5fc051920689ccb62ccfa3049 100644 (file)
@@ -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()