X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=e33b1b395e995c187edbccd29b2fbde77684f250;hb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;hp=cc9b9aedcab6bec531ef0606903b2ee46d9cbb70;hpb=735545e765720a954a345bc068239e2fffa0dbe1;p=mailer.git diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index cc9b9aedca..e33b1b395e 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1,7 +1,7 @@ "); - if ((empty($what)) && ($mode != 'admin')) { + if (!isExtensionInstalledAndNewer('sql_patches', '0.0.5')) { + // sql_patches is missing so choose depending on mode + if ($mode == 'admin') { + $what = 'overview'; + } else { + $what = 'welcome'; + } + } elseif ((empty($what)) && ($mode != 'admin')) { + // Use configured 'home' $what = getConfig('index_home'); } // END - if @@ -1644,22 +1652,29 @@ function generateOptionList ($table, $id, $name, $default='', $special='', $wher $ret = ''; if ($table == '/ARRAY/') { // Selection from array - if (is_array($id) && is_array($name) && count($id) == count($name)) { + if ((is_array($id)) && (is_array($name)) && (count($id)) == (count($name))) { // Both are arrays foreach ($id as $idx => $value) { $ret .= '