Index: branches/5.1.x/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r14369 -r14371 --- branches/5.1.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 14369) +++ branches/5.1.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 14371) @@ -1,6 +1,6 @@ Application->getBaseCategory(); - if (($object->GetDBField('ParentId') == $root_category) && ($object->GetDBField('Template') == CATEGORY_TEMPLATE_INHERIT)) { + if ( file_exists(FULL_PATH . '/themes') && ($object->GetDBField('ParentId') == $root_category) && ($object->GetDBField('Template') == CATEGORY_TEMPLATE_INHERIT) ) { + // there are themes + creating top level category $object->SetError('Template', 'no_inherit'); }