Browse Source

version fix

Nathaniel van Diepen 11 years ago
parent
commit
046480c252
1 changed files with 2 additions and 1 deletions
  1. 2 1
      install/api.php

+ 2 - 1
install/api.php

@@ -142,7 +142,8 @@
 								@unlink(realpath(dirname(__FILE__)).'/'.$file);
 							}
 						}
-						if(empty(scandir(realpath(dirname(__FILE__))))){
+						$files = scandir(realpath(dirname(__FILE__)));
+						if(empty($files)){
 							@rmdir(realpath(dirname(__FILE__)));
 						}else{
 							echo "Couldn't remove install directory\n";