Skip to content

Commit

Permalink
Forgot to quote
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Jan 28, 2024
1 parent 9f3c980 commit a3a2f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/migrations/27.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$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 = <<<HTML
Expand Down Expand Up @@ -43,5 +43,5 @@
$query = $db->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);");
}

0 comments on commit a3a2f05

Please sign in to comment.