diff options
Diffstat (limited to 'lib/installer.php')
-rw-r--r-- | lib/installer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/installer.php b/lib/installer.php index dcd29f9e1ad..c29f9ec8982 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -109,7 +109,7 @@ class OC_Installer{ if(!is_file($extractDir.'/appinfo/info.xml')) { //try to find it in a subdir $dh=opendir($extractDir); - while($folder=readdir($dh)) { + while (($folder = readdir($dh)) !== false) { if($folder[0]!='.' and is_dir($extractDir.'/'.$folder)) { if(is_file($extractDir.'/'.$folder.'/appinfo/info.xml')) { $extractDir.='/'.$folder; |