db query looping without bounds if group table wasn't manually updated to add the 'hash' column.

This commit is contained in:
friendica 2012-12-14 15:08:55 -08:00
parent 9d96cb37a0
commit 37974e5288
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -1 +1 @@
2012-12-13.168
2012-12-14.169