mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
* fixed displaying houses on TFS 1.x and higher
* fixed latest migration mysql error (23) * fixed some config warning about highscores_balance
This commit is contained in:
parent
55ab90a481
commit
57d8e0b06f
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(!$db->hasColumn(TABLE_PREFIX . 'menu', 'blank'))
|
if(!$db->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'))
|
if(!$db->hasColumn(TABLE_PREFIX . 'menu', 'color'))
|
||||||
$db->query("ALTER TABLE `' . TABLE_PREFIX . 'menu` ADD `color` CHAR(6) NOT NULL DEFAULT '' AFTER `blank`;");
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "menu` ADD `color` CHAR(6) NOT NULL DEFAULT '' AFTER `blank`;");
|
@ -323,7 +323,7 @@ echo '
|
|||||||
if($config['highscores_frags']) {
|
if($config['highscores_frags']) {
|
||||||
$types['frags'] = 'Frags';
|
$types['frags'] = 'Frags';
|
||||||
}
|
}
|
||||||
if($config['highscores_balance'])
|
if(isset($config['highscores_balance']) && $config['highscores_balance'])
|
||||||
$types['balance'] = 'Balance';
|
$types['balance'] = 'Balance';
|
||||||
|
|
||||||
foreach($types as $link => $name) {
|
foreach($types as $link => $name) {
|
||||||
|
@ -134,7 +134,7 @@ $type = '';
|
|||||||
echo '<br/>';
|
echo '<br/>';
|
||||||
|
|
||||||
if(isset($_POST['town']) && isset($_POST['state']) && isset($_POST['order'])
|
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'];
|
$order = $_POST['order'];
|
||||||
$orderby = '`name`';
|
$orderby = '`name`';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user