Skip to content

Commit

Permalink
fix Tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhelskiy committed Feb 2, 2014
1 parent d9053aa commit ce1222d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/modules/tools/Tools.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ public function GetDirsRecursiveListing($sDir, $aFileTypes = null, $bOnlyFiles =
* выбрать все директории и файлы, добавляя к директориям слеш в конце
* (будут выбраны все файлы, кроме тех, которые начинаются на точку (.htaccess)
*/
$aFilesAndDirs = glob($sDir . '*', GLOB_MARK);
if (!($aFilesAndDirs = glob($sDir . '*', GLOB_MARK))) {
return array();
}
foreach ($aFilesAndDirs as $sFileOrDir) {
/*
* если это директория
Expand Down

0 comments on commit ce1222d

Please sign in to comment.