diff --git a/src/settings.php b/src/settings.php index 035bc02..766b59f 100644 --- a/src/settings.php +++ b/src/settings.php @@ -97,7 +97,7 @@ function getLangs($withContents = 0) /* deprecated */ function getOldLangs($withContents = 0) { - if (!$h = opendir(MTTPATH. 'lang')) return false; + if (!$h = @opendir(MTTPATH. 'lang')) return false; $a = array(); while(false !== ($file = readdir($h))) {