diff --git a/classes/PrettyBlocksModel.php b/classes/PrettyBlocksModel.php index 82d7d21e..38ba9328 100644 --- a/classes/PrettyBlocksModel.php +++ b/classes/PrettyBlocksModel.php @@ -80,7 +80,7 @@ private function removeConfig() { $id = $this->id_prettyblocks; $key = $id . "\_%_CONFIG"; - $sql = 'SELECT name FROM ' . _DB_PREFIX_ . "configuration WHERE name LIKE '" . $key . "'"; + $sql = 'SELECT name FROM ' . _DB_PREFIX_ . "configuration WHERE name LIKE '" . pSQL($key) . "'"; $keys = Db::getInstance()->executeS($sql); if (count($keys) > 0) { foreach ($keys as $k) {