Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add during_initial_install check in update_object_by_hash function #570

Open
wants to merge 4 commits into
base: MOODLE_310_STABLE
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions classes/local/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not do this first above line 139?

return;
}

$newobject = new stdClass();
$newobject->contenthash = $contenthash;

Expand Down
Loading