]> git.mjollnir.org Git - moodle.git/commitdiff
An example of how one unitialized variable can generate really
authorstronk7 <stronk7>
Sat, 12 Aug 2006 09:14:40 +0000 (09:14 +0000)
committerstronk7 <stronk7>
Sat, 12 Aug 2006 09:14:40 +0000 (09:14 +0000)
dificult-to-trace bugs. Thanks to Jens Gammelgaard and support  B-)
(http://moodle.org/bugs/bug.php?op=show&bugid=6233)

Merged from MOODLE_16_STABLE

backup/lib.php

index 3ca0d7b0690c505ee9e1790c3cb31ce02c9cd173..02386b7d7e93c0f2b4427a65fa5f1491b0e4f387 100644 (file)
 
         global $CFG;
 
+        $status = true; // Initialize this, next code will change its value if needed
+
         if (!is_dir($to_file)) {
             //echo "<br />Creating ".$to_file;                                //Debug
             umask(0000);