X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fnotifier.php;h=812752a55c2ac2975834be4154de455d3c052cc7;hb=5ca93d054104b4af964263ec5b054806b5222bba;hp=584555d4ac40989f31c95b928b31f3e55563df35;hpb=4aa834564af57ee1b41eb391974e06d37c598873;p=friendica.git diff --git a/include/notifier.php b/include/notifier.php index 584555d4ac..812752a55c 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -599,10 +599,10 @@ function notifier_run(&$argv, &$argc){ foreach($r as $rr) { if((! $mail) && (! $fsuggest) && (! $followup)) { - q("insert into deliverq ( `cmd`,`item`,`contact` ) values ('%s', %d, %d )", - dbesc($cmd), - intval($item_id), - intval($rr['id']) + q("INSERT INTO `deliverq` (`cmd`,`item`,`contact`) VALUES ('%s', %d, %d) + ON DUPLICATE KEY UPDATE `cmd` = '%s', `item` = %d, `contact` = %d", + dbesc($cmd), intval($item_id), intval($rr['id']), + dbesc($cmd), intval($item_id), intval($rr['id']) ); } }