Index: trunk/kernel/units/themes/themes_tag_processor.php =================================================================== diff -u -r2600 -r3834 --- trunk/kernel/units/themes/themes_tag_processor.php (.../themes_tag_processor.php) (revision 2600) +++ trunk/kernel/units/themes/themes_tag_processor.php (.../themes_tag_processor.php) (revision 3834) @@ -5,7 +5,11 @@ function StylesheetFile($params) { $object =& $this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix, $params ); - + if (!$object->GetDBField('StyleName')) { + // no stylesheet is associated with current theme + return ''; + } + $css_url = $this->Application->BaseURL('/kernel/stylesheets'); $css_path = rtrim( str_replace( $this->Application->BaseURL(), FULL_PATH.'/', $css_url), '/' );