Permalink
Browse files

MDL-34441 dbtransfer - do not attempt migration if moodle is not inst…

…alled.
  • Loading branch information...
1 parent c237be8 commit c54a83d8bd3552ba17e065c7f847664f1729ba4c @danpoltawski danpoltawski committed Jul 25, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 admin/tool/dbtransfer/cli/migrate.php
@@ -83,8 +83,11 @@
exit(0);
}
-echo "\n".get_string('cliheading', 'tool_dbtransfer')."\n\n";
+if (empty($CFG->version)) {
+ cli_error(get_string('missingconfigversion', 'debug'));
+}
+echo "\n".get_string('cliheading', 'tool_dbtransfer')."\n\n";
$drivers = tool_dbtransfer_get_drivers();

0 comments on commit c54a83d

Please sign in to comment.