diff options
Diffstat (limited to 'inc/auth/plain.php')
-rw-r--r-- | inc/auth/plain.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/auth/plain.php b/inc/auth/plain.php index 6178f1260..d9569c3fd 100644 --- a/inc/auth/plain.php +++ b/inc/auth/plain.php @@ -45,7 +45,11 @@ function auth_checkPass($user,$pass){ * @author Andreas Gohr <andi@splitbrain.org> */ function auth_getUserData($user){ - $users = auth_plain_loadUserData(); + static $users = null; + + if($users == null) { + $users = auth_plain_loadUserData(); + } return $users[$user]; } |