diff --git a/classes/local/manager.php b/classes/local/manager.php index c746b9c2..89f4f639 100644 --- a/classes/local/manager.php +++ b/classes/local/manager.php @@ -136,6 +136,11 @@ public static function get_client($config) { */ public static function update_object_by_hash($contenthash, $newlocation, $filesize = null) { global $DB; + + if (during_initial_install()) { + return; + } + $newobject = new stdClass(); $newobject->contenthash = $contenthash;