// 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