From 37974e5288adc391b32d72f5b4d6e9d698ee1777 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 14 Dec 2012 15:08:55 -0800 Subject: db query looping without bounds if group table wasn't manually updated to add the 'hash' column. --- include/group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/group.php') diff --git a/include/group.php b/include/group.php index 35ec72167..fdcdc4416 100644 --- a/include/group.php +++ b/include/group.php @@ -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); -- cgit v1.2.3