]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Merge pull request #3284 from annando/issue-3278
[friendica.git] / include / enotify.php
index f86174bd40109826025f5fe96f7b57a6f9e6087c..ebc27309dbe61710b76241f84bfd28e6f8ce0b1d 100644 (file)
@@ -411,12 +411,10 @@ function notification($params) {
                        $hash = random_string();
                        $r = q("SELECT `id` FROM `notify` WHERE `hash` = '%s' LIMIT 1",
                                dbesc($hash));
-                       if (dbm::is_result($r)) {
+                       if (dbm::is_result($r))
                                $dups = true;
-                       }
-               } while ($dups == true);
+               } while($dups == true);
 
-               /// @TODO One statement is enough
                $datarray = array();
                $datarray['hash']  = $hash;
                $datarray['name']  = $params['source_name'];