Merge pull request #17472 from RealRancor/add_is_dir

Add is_dir check to getAllApps() function
This commit is contained in:
Morris Jobke 2015-07-08 18:30:45 +02:00
Родитель 0fe81d2f21 1300204586
Коммит 19f34bafa5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -779,7 +779,7 @@ class OC_App {
if (is_resource($dh)) {
while (($file = readdir($dh)) !== false) {
if ($file[0] != '.' and is_file($apps_dir['path'] . '/' . $file . '/appinfo/info.xml')) {
if ($file[0] != '.' and is_dir($apps_dir['path'] . '/' . $file) and is_file($apps_dir['path'] . '/' . $file . '/appinfo/info.xml')) {
$apps[] = $file;