handling of boolean constants improved (not fully)
[mailer.git] / inc / theme-manager.php
index 81e2fadfbc9a7dfdbd23ae7c4361de23cd47baa9..d591bbbfcd76967a8e51d270b1afa5f332df1e4b 100644 (file)
@@ -61,7 +61,7 @@ function GET_CURR_THEME() {
 
                // Free memory
                SQL_FREERESULT($result);
-       } elseif ((!mxchange_installed) && ((mxchange_installing) || ($CSS == true)) && ((!empty($_GET['theme'])) || (!empty($_POST['theme'])))) {
+       } elseif ((!isBooleanConstantAndTrue('mxchange_installed')) && ((isBooleanConstantAndTrue('mxchange_installing')) || ($CSS == true)) && ((!empty($_GET['theme'])) || (!empty($_POST['theme'])))) {
                // Prepare FQFN for checking
                $theme = sprintf("%stheme/%s/theme.php", PATH, $_GET['theme']);