db query looping without bounds if group table wasn't manually updated to add the 'hash' column.
This commit is contained in:
parent
9d96cb37a0
commit
37974e5288
@ -32,7 +32,7 @@ function group_add($uid,$name) {
|
||||
$hash = random_string() . $name;
|
||||
|
||||
$r = q("SELECT id FROM group WHERE hash = '%s' LIMIT 1", dbesc($hash));
|
||||
if(count($r))
|
||||
if($r)
|
||||
$dups = true;
|
||||
} while($dups == true);
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2012-12-13.168
|
||||
2012-12-14.169
|
||||
|
Reference in New Issue
Block a user