Fix last commit to be compliant also with php 5.4
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 30 Jul 2015 16:19:28 +0000 (18:19 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 30 Jul 2015 16:19:28 +0000 (18:19 +0200)
public_html/view.php

index 932610a..7deeb9a 100644 (file)
@@ -140,7 +140,7 @@ if(LSsession :: startLSsession()) {
               'url' => 'create.php?LSobject='.$LSobject,
               'action' => 'create'
             );
-            if (!empty($object -> listValidIOformats())) {
+            if ($object -> listValidIOformats()) {
               $LSview_actions['import'] = array (
                 'label' => 'Import',
                 'url' => 'import.php?LSobject='.$LSobject,