Browse Source

Fixed try-catch blocks

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

+ 2 - 2
install/api.php

@@ -141,13 +141,13 @@
 							if($file != '.' && $file != '..'){
 								try{
 									unlink(realpath(dirname(__FILE__)).'/'.$file);
-								}catch(e){
+								}catch(Exception $e){
 									echo "Couldn't remove {$file}\n";
 								}
 							}
 							try{
 								rmdir(realpath(dirname(__FILE__)));
-							}catch(e){
+							}catch(Exception $e){
 								echo "Couldn't remove install directory\n";
 							}
 						}