avoid E_STRICT errors
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 6 Jan 2008 01:57:59 +0000 (01:57 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 6 Jan 2008 01:57:59 +0000 (01:57 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12861 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/file_prefs.php

index fb4f706d7586f7d2d0f6bb345dda81435b392b55..524ee32c4cc37d4ebdfe66d758991c59f6456728 100644 (file)
@@ -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;
             }