Skip to content
Snippets Groups Projects
Commit 13002045 authored by RealRancor's avatar RealRancor
Browse files

Add is_dir check to getAllApps() function

parent 2fd84607
No related branches found
No related tags found
No related merge requests found
...@@ -779,7 +779,7 @@ class OC_App { ...@@ -779,7 +779,7 @@ class OC_App {
if (is_resource($dh)) { if (is_resource($dh)) {
while (($file = readdir($dh)) !== false) { 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; $apps[] = $file;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment