diff --git a/admin/utfdbmigrate.php b/admin/utfdbmigrate.php index 0743be5d748..76313ccb958 100755 --- a/admin/utfdbmigrate.php +++ b/admin/utfdbmigrate.php @@ -53,12 +53,12 @@ print_string('dbmigratewarning2','admin'); print_simple_box_end(); //put the site in maintenance mode - if touch($filename) { + if (touch($filename)) { $file = fopen($filename, 'w'); fwrite($file, get_string('maintinprogress','admin')); fclose($file); } else { - notify (get_string('maintfileopenerror','admin') + notify (get_string('maintfileopenerror','admin')); } //print second confirmation box echo '
';