diff --git a/system/migrations/23.php b/system/migrations/23.php index 3661bd9a..ba4bbe0c 100644 --- a/system/migrations/23.php +++ b/system/migrations/23.php @@ -1,7 +1,7 @@ hasColumn(TABLE_PREFIX . 'menu', 'blank')) - $db->query('ALTER TABLE `' . TABLE_PREFIX . 'menu` ADD `blank` TINYINT(1) NOT NULL DEFAULT 0 AFTER `link`;'); + $db->query("ALTER TABLE `" . TABLE_PREFIX . "menu` ADD `blank` TINYINT(1) NOT NULL DEFAULT 0 AFTER `link`;"); if(!$db->hasColumn(TABLE_PREFIX . 'menu', 'color')) - $db->query("ALTER TABLE `' . TABLE_PREFIX . 'menu` ADD `color` CHAR(6) NOT NULL DEFAULT '' AFTER `blank`;"); \ No newline at end of file + $db->query("ALTER TABLE `" . TABLE_PREFIX . "menu` ADD `color` CHAR(6) NOT NULL DEFAULT '' AFTER `blank`;"); \ No newline at end of file diff --git a/system/pages/highscores.php b/system/pages/highscores.php index 4c95acd2..df8c98fb 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -323,7 +323,7 @@ echo ' if($config['highscores_frags']) { $types['frags'] = 'Frags'; } - if($config['highscores_balance']) + if(isset($config['highscores_balance']) && $config['highscores_balance']) $types['balance'] = 'Balance'; foreach($types as $link => $name) { diff --git a/system/pages/houses.php b/system/pages/houses.php index 3bf5e25e..51585bd8 100644 --- a/system/pages/houses.php +++ b/system/pages/houses.php @@ -134,7 +134,7 @@ $type = ''; echo '
'; if(isset($_POST['town']) && isset($_POST['state']) && isset($_POST['order']) - && (isset($_POST['type']) || !$db->hasTable('houses', 'guild'))) + && (isset($_POST['type']) || !$db->hasColumn('houses', 'guild'))) { $order = $_POST['order']; $orderby = '`name`';