[Web] Minor fixes and changes
This commit is contained in:
@@ -3383,7 +3383,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
|
||||
'msg' => 'domain_not_empty'
|
||||
'msg' => array('domain_not_empty', $domain)
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ function init_db_schema() {
|
||||
$stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
|
||||
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
|
||||
if ($num_results != 0) {
|
||||
$stmt = $pdo->query("SELECT `version` FROM `versions`");
|
||||
$stmt = $pdo->query("SELECT `version` FROM `versions` WHERE `application` = 'db_schema'");
|
||||
if ($stmt->fetch(PDO::FETCH_ASSOC)['version'] == $db_version) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user