Skip to content

Commit

Permalink
Merge pull request #132 from FriendsOfREDAXO/status-sql-fix
Browse files Browse the repository at this point in the history
fix update wrong SQL
  • Loading branch information
alxndr-w authored Nov 26, 2024
2 parents 600f029 + 3b98526 commit 7bd6f3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
if (rex_version::compare('5.1.0', $this->getVersion(), '>')) {
$sql = rex_sql::factory();
$sql->setTable(rex::getTable('neues_entry'));
$sql->setWhere('status', 2);
$sql->setWhere('status = 2');
$sql->setValue('status', -2);
$sql->update();
}
1 change: 1 addition & 0 deletions lib/Cronjob/Publish.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use rex_i18n;

use function count;
use function sprintf;

class Publish extends rex_cronjob
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Cronjob/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
use rex_string;
use Throwable;

use function sprintf;

class Sync extends rex_cronjob
{
private const ENDPOINT = '/rest/neues/entry/5.0.0/';
Expand Down

0 comments on commit 7bd6f3b

Please sign in to comment.