diff options
author | friendica <info@friendica.com> | 2012-12-14 15:08:55 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-14 15:08:55 -0800 |
commit | 37974e5288adc391b32d72f5b4d6e9d698ee1777 (patch) | |
tree | c1c7a8b623f797d50209cb086b25dcf25a9c860e /include | |
parent | 9d96cb37a036988a64e93fbcc8f8b497de4987a0 (diff) | |
download | volse-hubzilla-37974e5288adc391b32d72f5b4d6e9d698ee1777.tar.gz volse-hubzilla-37974e5288adc391b32d72f5b4d6e9d698ee1777.tar.bz2 volse-hubzilla-37974e5288adc391b32d72f5b4d6e9d698ee1777.zip |
db query looping without bounds if group table wasn't manually updated to add the 'hash' column.
Diffstat (limited to 'include')
-rw-r--r-- | include/group.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |