Explorar o código

avoid E_STRICT errors

pdontthink %!s(int64=17) %!d(string=hai) anos
pai
achega
eec299ee3d
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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;
             }