]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/FixAPDeliveryWorkerTaskParameters.php
Merge pull request #11107 from annando/api-oauth
[friendica.git] / src / Console / FixAPDeliveryWorkerTaskParameters.php
index 9023d84ac280b336a5c41bb8a9a67089dc8a8450..8b09a6b1734a4f49b8db1b58d68fbcd1bf71ef7e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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);