From 4b27a9215b1eafe9888d3f5fd770e41fa2004235 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 3 Oct 2012 23:15:57 +0200 Subject: [PATCH] Fix: Show message only when needed --- htdocs/core/ajax/ajaxdirpreview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/ajax/ajaxdirpreview.php b/htdocs/core/ajax/ajaxdirpreview.php index 9360d5b61ec..11e42602f03 100644 --- a/htdocs/core/ajax/ajaxdirpreview.php +++ b/htdocs/core/ajax/ajaxdirpreview.php @@ -253,7 +253,7 @@ if ($type == 'directory') if ($section) $param.='§ion='.$section; $textifempty=($section?$langs->trans("NoFileFound"):($showonrightsize=='featurenotyetavailable'?$langs->trans("FeatureNotYetAvailable"):$langs->trans("ECMSelectASection"))); // If $section defined with value 0 - if ($section == '0') + if ($section === '0') { $filearray=array(); $textifempty='
'.$langs->trans("DirNotSynchronizedSyncFirst").'

';