summaryrefslogtreecommitdiff
path: root/inc/auth/plain.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth/plain.php')
-rw-r--r--inc/auth/plain.php3
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