Browse Source

Minor - Initializing variables to avoid notices

ywarnier 14 years ago
parent
commit
15be9f84b7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/inc/lib/main_api.lib.php

+ 2 - 1
main/inc/lib/main_api.lib.php

@@ -3068,7 +3068,7 @@ function rmdirr($dirname) {
     if (!file_exists($dirname)) {
         return false;
     }
-
+    $php_errormsg = '';
     // Simple delete for a file.
     if (is_file($dirname) || is_link($dirname)) {
         $res = unlink($dirname);
@@ -3300,6 +3300,7 @@ function parse_info_file($filename) {
           ([^\r\n]*?)                   # Non-quoted string
         )\s*$                           # Stop at the next end of a line, ignoring trailing whitespace
         @msx', $data, $matches, PREG_SET_ORDER)) {
+        $key = $value1 = $value2 = $value3 = '';
         foreach ($matches as $match) {
             // Fetch the key and value string.
             $i = 0;