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": "