summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-06-20 22:34:00 +0200
committerandi <andi@splitbrain.org>2005-06-20 22:34:00 +0200
commit11799630b5d82fc768ac59ccd056bdcf9c3e54dd (patch)
tree54e42b07e3c28efd5923779e84ca26ac9878bf3a /inc/auth.php
parent830f316909f158b12f8a5b3207efd5544893d4e8 (diff)
downloadrpg-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.php')
-rw-r--r--inc/auth.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 863bb3c49..fdf5d17f3 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -29,7 +29,11 @@
if($conf['useacl']){
auth_login($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r']);
//load ACL into a global array
- $AUTH_ACL = file(DOKU_INC.'conf/acl.auth.php');
+ if(is_readable(DOKU_INC.'conf/acl.auth.php')){
+ $AUTH_ACL = file(DOKU_INC.'conf/acl.auth.php');
+ }else{
+ $AUTH_ACL = array();
+ }
}
/**