mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Fix bug where server_config table does not exist (OTHire as an example)
Happened in Usage_Statistics class Thanks for reporting the OtLand user - Olddies
This commit is contained in:
parent
a4bccbaa34
commit
dacc5b9dab
@ -40,10 +40,12 @@ class Usage_Statistics {
|
||||
$ret['myaac_version'] = MYAAC_VERSION;
|
||||
$ret['myaac_db_version'] = DATABASE_VERSION;
|
||||
|
||||
$query = $db->query('SELECT `value` FROM `server_config` WHERE `config` = ' . $db->quote('database_version'));
|
||||
if($query->rowCount() == 1) {
|
||||
$query = $query->fetch();
|
||||
$ret['otserv_db_version'] = $query['value'];
|
||||
if(tableExist('server_config')) {
|
||||
$query = $db->query('SELECT `value` FROM `server_config` WHERE `config` = ' . $db->quote('database_version'));
|
||||
if($query->rowCount() == 1) {
|
||||
$query = $query->fetch();
|
||||
$ret['otserv_db_version'] = $query['value'];
|
||||
}
|
||||
}
|
||||
|
||||
$ret['client_version'] = $config['client'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user