Jelajahi Sumber

fixed incorrect test. $adm_id was getting value of fileowner && function_exists

tokul 20 tahun lalu
induk
melakukan
b72e8c5793
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      plugins/administrator/auth.php

+ 1 - 1
plugins/administrator/auth.php

@@ -36,7 +36,7 @@ function adm_check_user() {
     } else if (file_exists(SM_PATH . 'config/admins')) {
         $auths = file(SM_PATH . 'config/admins');
         $auth = in_array("$username\n", $auths);
-    } else if ($adm_id = fileowner(SM_PATH . 'config/config.php') &&
+    } else if (($adm_id = fileowner(SM_PATH . 'config/config.php')) &&
                function_exists('posix_getpwuid')) {
         $adm = posix_getpwuid( $adm_id );
         $auth = ($username == $adm['name']);