Skip to content
Snippets Groups Projects
Commit ee30ffda authored by andi's avatar andi
Browse files

small mysql_auth fix

darcs-hash:20050413180007-9977f-775116032aa4bda171b7585209a163de74ef45cb.gz
parent 340756e4
No related branches found
No related tags found
No related merge requests found
......@@ -93,9 +93,12 @@ function auth_getUserData($user){
$sql = str_replace('%u',addslashes($user),$cnf['groups']);
$result = auth_mysql_runsql($sql);
if(!count($result)) return false;
foreach($result as $row){
$info['grps'][] = $row['group'];
if(!count($result)){
$info['grps'][] = $conf['defaultgroup'];
}else{
foreach($result as $row){
$info['grps'][] = $row['group'];
}
}
return $info;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment