From: Roland Häder Date: Mon, 20 Oct 2008 13:15:33 +0000 (+0000) Subject: More fixes for admin functions, thanks to Piter01 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=64ac34f8ebcfef05d9b273dd2be693717483ba16;p=mailer.git More fixes for admin functions, thanks to Piter01 --- diff --git a/img.php b/img.php index 64919e4066..54b2173947 100644 --- a/img.php +++ b/img.php @@ -1,6 +1,6 @@ 0)) { LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_ADMINS_ENTRIES_DELETED); } elseif (isset($_POST['add'])) { // Check if everything is fine... - $mode = GET_ADMIN_DEFAULT_ACL(GET_ADMIN_LOGIN(bigintval($_POST['admin_id']))); + $mode = GET_ADMIN_DEFAULT_ACL(bigintval($_POST['admin_id'])); // Default ACL is false $ACL = false; diff --git a/inc/theme-manager.php b/inc/theme-manager.php index 2ba2d28b77..44b82d17dd 100644 --- a/inc/theme-manager.php +++ b/inc/theme-manager.php @@ -253,7 +253,7 @@ function GET_CURR_THEME_NAME () { if (isset($_CONFIG['cache_hits'])) { $_CONFIG['cache_hits']++; } else { $_CONFIG['cache_hits'] = 1; } } elseif (GET_EXT_VERSION("cache") != "0.1.8") { // Check if current theme is already imported or not - $result = SQL_QUERY_ESC("SELECT theme_name FROM "._MYSQL_PREFIX."_themes WHERE theme_path='%s' AND theme_name='Y' LIMIT 1", + $result = SQL_QUERY_ESC("SELECT theme_name FROM "._MYSQL_PREFIX."_themes WHERE theme_path='%s' AND theme_active='Y' LIMIT 1", array($name), __FILE__, __LINE__); // Is the theme active and installed?