diff --git a/public_html/view.php b/public_html/view.php index 79bf1f98..932610a7 100644 --- a/public_html/view.php +++ b/public_html/view.php @@ -140,11 +140,13 @@ if(LSsession :: startLSsession()) { 'url' => 'create.php?LSobject='.$LSobject, 'action' => 'create' ); - $LSview_actions['import'] = array ( - 'label' => 'Import', - 'url' => 'import.php?LSobject='.$LSobject, - 'action' => 'import' - ); + if (!empty($object -> listValidIOformats())) { + $LSview_actions['import'] = array ( + 'label' => 'Import', + 'url' => 'import.php?LSobject='.$LSobject, + 'action' => 'import' + ); + } } $LSview_actions['refresh'] = array ( 'label' => 'Refresh',