Fix: Show message only when needed

This commit is contained in:
Laurent Destailleur 2012-10-03 23:15:57 +02:00
parent 59a33db53d
commit 4b27a9215b

View File

@ -253,7 +253,7 @@ if ($type == 'directory')
if ($section) $param.='&section='.$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='<br><div align="center"><font class="warning">'.$langs->trans("DirNotSynchronizedSyncFirst").'</font></div><br>';