Browse Source

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

jmunro 23 years ago
parent
commit
de7081caf4
1 changed files with 3 additions and 0 deletions
  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 );