From f035d12aaf70152c957d26a1d194037308bae62d Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Thu, 17 Aug 2017 11:55:51 +0200 Subject: [PATCH] Skip migration on empty db --- lib/Config/Populator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index 7a4dbe81e0..430e9049cf 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -402,7 +402,7 @@ class Populator { global $wpdb; // perform once for versions below 3.0.0-beta.36.2.1 - if(version_compare(get_option('mailpoet_db_version'), '3.0.0-beta.36.2.1', '>=')) { + if(version_compare(get_option('mailpoet_db_version', '3.0.0-beta.36.2.3'), '3.0.0-beta.36.2.1', '>=')) { return false; }