Sfoglia il codice sorgente

fixed a warning when admin plugin is installed but not setup.

jmunro 23 anni fa
parent
commit
de7081caf4
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      plugins/administrator/auth.php

+ 3 - 0
plugins/administrator/auth.php

@@ -24,6 +24,9 @@ function adm_check_user() {
         $adm = posix_getpwuid( $adm_id );
         $auth = ( $username == $adm['name'] );
     }
+    else {
+        $auth = FALSE;
+    }
 
     return( $auth );