diff --git a/system/migrations/27.php b/system/migrations/27.php index f6d72932..f1966b88 100644 --- a/system/migrations/27.php +++ b/system/migrations/27.php @@ -12,7 +12,7 @@ HTML; $query = $db->query("SELECT `id` FROM `" . TABLE_PREFIX . "pages` WHERE `name` LIKE " . $db->quote('downloads') . " LIMIT 1;"); if($query->rowCount() === 0) { $db->exec("INSERT INTO `myaac_pages` (`id`, `name`, `title`, `body`, `date`, `player_id`, `php`, `access`, `hide`) VALUES - (null, 'downloads', 'Downloads', $downloadsPage, 0, 1, 0, 0, 0);"); + (null, 'downloads', 'Downloads', $db->quote($downloadsPage), 0, 1, 0, 0, 0);"); } $commandsPage = <<query("SELECT `id` FROM `" . TABLE_PREFIX . "pages` WHERE `name` LIKE " . $db->quote('commands') . " LIMIT 1;"); if($query->rowCount() === 0) { $db->exec("INSERT INTO `myaac_pages` (`id`, `name`, `title`, `body`, `date`, `player_id`, `php`, `access`, `hide`) VALUES -(null, 'commands', 'Commands', $commandsPage, 0, 1, 0, 0, 0);"); +(null, 'commands', 'Commands', $db->quote($commandsPage), 0, 1, 0, 0, 0);"); }