From f7c94cc88b73b082b407f2064a75b80aebd3f03e Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 23 Apr 2015 10:04:23 -0700 Subject: [PATCH] Fixes #970 - strip out "IF NOT EXISTS" from MySQL during plugin install. --- e107_handlers/plugin_class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index 85b0153e4..6b839ecea 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -1103,6 +1103,7 @@ class e107plugin { $tab = str_replace("TYPE=MyISAM","ENGINE=MyISAM",$tab); + $tab = str_replace("IF NOT EXISTS", "", $tab); if(!preg_match("/MyISAM.*CHARSET ?= ?utf8/i",$tab)) {