X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FFixAPDeliveryWorkerTaskParameters.php;h=a0bf989fc4f34320aa7b7f990f2f31298b9e7b73;hb=9581b05603e6ee4e250738c159ed2e67b3fb2eeb;hp=9023d84ac280b336a5c41bb8a9a67089dc8a8450;hpb=122ad0af14f046c2462a03fe33967dc41abfc8b5;p=friendica.git diff --git a/src/Console/FixAPDeliveryWorkerTaskParameters.php b/src/Console/FixAPDeliveryWorkerTaskParameters.php index 9023d84ac2..a0bf989fc4 100644 --- a/src/Console/FixAPDeliveryWorkerTaskParameters.php +++ b/src/Console/FixAPDeliveryWorkerTaskParameters.php @@ -1,6 +1,6 @@ l10n = $l10n; } - protected function doExecute() + protected function doExecute(): int { if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); @@ -106,7 +106,7 @@ HELP; $this->errored = 0; do { - $result = $this->dba->p('SELECT `id`, `parameter` FROM `workerqueue` WHERE `command` = "APDelivery" AND `parameter` LIKE "[\"%\",\"\",%" LIMIT ' . $this->examined . ', 100'); + $result = $this->dba->select('workerqueue', ['id', 'parameter'], ["`command` = ? AND `parameter` LIKE ?", "APDelivery", "[\"%\",\"\",%"], ['limit' => [$this->examined, 100]]); while ($row = $this->dba->fetch($result)) { $this->examined++; $this->processRow($row);