Browse Source

avoid E_STRICT errors

pdontthink 17 years ago
parent
commit
eec299ee3d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      functions/file_prefs.php

+ 4 - 2
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;
             }