From 8518f21987c97bc670cbd8dede4e56ed20457939 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 28 Jan 2024 18:42:10 +0100 Subject: [PATCH] Fix the migration, thanks @gpedro --- system/migrations/27.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/migrations/27.php b/system/migrations/27.php index f1966b88..42040092 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', $db->quote($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', $db->quote($commandsPage), 0, 1, 0, 0, 0);"); +(null, 'commands', 'Commands', {$db->quote($commandsPage)}, 0, 1, 0, 0, 0);"); }