PITS /
00941: authuser.php fails on line 82 if no auth methods are defined
Summary: authuser.php fails on line 82 if no auth methods are defined
Created: 2007-06-16 07:50
Status: Open
Category: Bug
Assigned:
Priority: 4
Version: 2.1.27
OS: Linux/Apache2/PHP 5.2.0-8
Description: When no $AuthUser variables are defined, authuser.php gives an error about an array being undefined.
The patch is very simple:
44,47c44 < if(defined($AuthUser)) < foreach((array)$AuthUser as $k=>$v) $auth[$k] = (array)$v; < else < $auth=array(); --- > foreach((array)$AuthUser as $k=>$v) $auth[$k] = (array)$v;
This is needed when pmwiki auth functionality is unused; yet authentication happens using a .htaccess file.