]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/theme_functions.php
Heacy rewrite/cleanup:
[mailer.git] / inc / libs / theme_functions.php
index 09dee2dd5df886db06016112589d0edebd708c44..8539bff033401c4c406958c283de9c0e894b3600 100644 (file)
@@ -154,7 +154,7 @@ function getThemeVersion ($name) {
 // Checks whether a theme is found in db
 function ifThemeExists ($name) {
        // Get theme and is it not nul?
-       return (((isExtensionActive('theme')) || (getModule() == 'admin')) && (getThemeId($name) > 0));
+       return (((isExtensionActive('theme')) || (getModule() == 'admin')) && (isValidId(getThemeId($name))));
 }
 
 // Checks if a theme is active