From: pdontthink Date: Sun, 6 Jan 2008 01:57:59 +0000 (+0000) Subject: avoid E_STRICT errors X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81cc6a1994f9097d7ca883f4ab5bfebd70b3fca1;p=squirrelmail.git avoid E_STRICT errors git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12861 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/file_prefs.php b/functions/file_prefs.php index fb4f706d..524ee32c 100644 --- a/functions/file_prefs.php +++ b/functions/file_prefs.php @@ -109,13 +109,15 @@ function cachePrefValues($data_dir, $username) { function getPref($data_dir, $username, $pref_name, $default = '') { global $prefs_cache; - $result = do_hook('get_pref_override', $temp=array(&$username, &$pref_name)); + $temp = array(&$username, &$pref_name); + $result = do_hook('get_pref_override', $temp); if (!$result) { cachePrefValues($data_dir, $username); if (isset($prefs_cache[$pref_name])) { $result = $prefs_cache[$pref_name]; } else { - $result = do_hook('get_pref', $temp=array(&$username, &$pref_name)); + $temp = array(&$username, &$pref_name); + $result = do_hook('get_pref', $temp); if (!$result) { $result = $default; }