diff options
author | andi <andi@splitbrain.org> | 2005-06-20 22:34:00 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-06-20 22:34:00 +0200 |
commit | 11799630b5d82fc768ac59ccd056bdcf9c3e54dd (patch) | |
tree | 54e42b07e3c28efd5923779e84ca26ac9878bf3a /inc/auth/plain.php | |
parent | 830f316909f158b12f8a5b3207efd5544893d4e8 (diff) | |
download | rpg-11799630b5d82fc768ac59ccd056bdcf9c3e54dd.tar.gz rpg-11799630b5d82fc768ac59ccd056bdcf9c3e54dd.tar.bz2 |
handle missing users.auth and acl.auth gracefully
darcs-hash:20050620203400-9977f-515a59d1131ae5dafc6c722f893bf6c308121832.gz
Diffstat (limited to 'inc/auth/plain.php')
-rw-r--r-- | inc/auth/plain.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/auth/plain.php b/inc/auth/plain.php index eaa01b79d..039fb422d 100644 --- a/inc/auth/plain.php +++ b/inc/auth/plain.php @@ -93,6 +93,9 @@ function auth_createUser($user,$pass,$name,$mail){ */ function auth_plain_loadUserData(){ $data = array(); + if(!@file_exists(DOKU_INC.'conf/users.auth.php')){ + return $data; + } $lines = file(DOKU_INC.'conf/users.auth.php'); foreach($lines as $line){ $line = preg_replace('/#.*$/','',$line); //ignore comments |