From 55efaec57a87c429e71f3798d0457e7138868a19 Mon Sep 17 00:00:00 2001 From: mtroesken Date: Fri, 17 Aug 2018 11:37:48 +0200 Subject: [PATCH] [ETS-33] Fix Cron installation error if entry already exists --- Bootstrapping/CronjobSetup.php | 2 +- README.md | 5 ++++- plugin.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Bootstrapping/CronjobSetup.php b/Bootstrapping/CronjobSetup.php index 874a7f46..18b878db 100644 --- a/Bootstrapping/CronjobSetup.php +++ b/Bootstrapping/CronjobSetup.php @@ -14,7 +14,7 @@ class CronjobSetup extends Bootstrapper public function install() { $id = Shopware()->Db()->fetchOne('SELECT id from s_crontab WHERE `action` = ?', [self::UPDATE_TRANSACTIONS_ACTION]); - if(empty($id)) { + if ($id === false) { $this->bootstrap->createCronJob('RatePAY Transaction Updater', self::UPDATE_TRANSACTIONS_ACTION, self::UPDATE_TRANSACTIONS_INTERVAL_SECONDS); } } diff --git a/README.md b/README.md index 35c4a433..519e1877 100755 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ |------|---------- |Author | Annegret Seufert |Shop Version | `5.0.x` `5.1.x` `5.2.x` `5.3.x` -|Version | `5.2.1` +|Version | `5.2.2` |Link | http://www.ratepay.com |Mail | integration@ratepay.com |Installation | see below @@ -24,6 +24,9 @@ ## Changelog +### Version 5.2.2 - Released 2018-08-17 +* hotfix cronjob install in older shopware versions fails if entry already exists + ### Version 5.2.1 - Released 2018-08-16 * hotfix cronjob class not found error diff --git a/plugin.json b/plugin.json index 4aade0b8..d4dc3203 100644 --- a/plugin.json +++ b/plugin.json @@ -11,7 +11,7 @@ "supplier": "RatePAY GmbH", "description": "

RatePAY Payment plugin for Shopware Community Edition Version 5

", - "currentVersion": "5.2.1", + "currentVersion": "5.2.2", "payment_confirm": true, "compatibility": {