X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fenotify.php;h=ebc27309dbe61710b76241f84bfd28e6f8ce0b1d;hb=e4917503dae5b3b97a6414f55b716a1fd7d24bc1;hp=f86174bd40109826025f5fe96f7b57a6f9e6087c;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/include/enotify.php b/include/enotify.php index f86174bd40..ebc27309db 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -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'];