diff --git a/code/AssetTableField.php b/code/AssetTableField.php index 5870dab0..578793a3 100755 --- a/code/AssetTableField.php +++ b/code/AssetTableField.php @@ -93,13 +93,15 @@ class AssetTableField extends ComplexTableField { 'Main' ); - $detailFormFields->addFieldToTab("BottomRoot", - new Tab("Gallery Options", - new TextField( "Content", "Caption" ) - ) - ); + if(class_exists('GalleryFile')) { + $detailFormFields->addFieldToTab("BottomRoot", + new Tab("Gallery Options", + new TextField( "Content", "Caption" ) + ) + ); + } } - else { + else if (class_exists('GalleryFile')) { if( $childData->Extension == 'swf' ) { $detailFormFields->addFieldToTab("BottomRoot", new Tab("Gallery Options",