From 81cc6a1994f9097d7ca883f4ab5bfebd70b3fca1 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 6 Jan 2008 01:57:59 +0000 Subject: [PATCH] avoid E_STRICT errors git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12861 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/file_prefs.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.25.1