MDL-17457 moved a lot of code into lib/db/install.php + other refactoring and cleanup

This commit is contained in:
skodak
2009-01-11 09:41:48 +00:00
parent 51176ec09c
commit 1caea91efb
15 changed files with 280 additions and 361 deletions
+2 -3
View File
@@ -2834,9 +2834,8 @@ function create_guest_record() {
$guest->lang = $CFG->lang;
$guest->timemodified= time();
if (! $guest->id = $DB->insert_record('user', $guest)) {
return false;
}
$id = $DB->insert_record('user', $guest);
$guest = $DB->get_record('user', array('id'=>$id));
return $guest;
}