From: stronk7 Date: Sat, 12 Aug 2006 09:14:40 +0000 (+0000) Subject: An example of how one unitialized variable can generate really X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=615b4a13914e4623b9ec8e9b9d20ce222684d3d3;p=moodle.git An example of how one unitialized variable can generate really 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 --- diff --git a/backup/lib.php b/backup/lib.php index 3ca0d7b069..02386b7d7e 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -293,6 +293,8 @@ global $CFG; + $status = true; // Initialize this, next code will change its value if needed + if (!is_dir($to_file)) { //echo "
Creating ".$to_file; //Debug umask(0000);