]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Merge pull request #3373 from strk/expire-login-later
[friendica.git] / include / enotify.php
index ebc27309dbe61710b76241f84bfd28e6f8ce0b1d..f86174bd40109826025f5fe96f7b57a6f9e6087c 100644 (file)
@@ -411,10 +411,12 @@ 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'];