From: Petr Skoda Date: Sun, 8 Nov 2009 22:12:36 +0000 (+0000) Subject: MDL-17135 fixed fatal installation and ugprade error X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e5180580c892794af21d1053821625e7c3d2cdd4;p=moodle.git MDL-17135 fixed fatal installation and ugprade error --- diff --git a/lib/upgradelib.php b/lib/upgradelib.php index 9be0d1a75e..9b69928121 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -810,6 +810,7 @@ function external_update_descriptions($component) { $dbservice->requiredcapability = empty($service['requiredcapability']) ? null : $service['requiredcapability']; $dbservice->restrictedusers = !isset($service['restrictedusers']) ? 1 : $service['restrictedusers']; $dbservice->component = $component; + $dbservice->timecreated = time(); $dbservice->id = $DB->insert_record('external_services', $dbservice); foreach ($service['functions'] as $fname) { $newf = new object();