Commit cc4472e6 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Fix crash during upgrade (Bug 1494152)" into 1.10_STABLE

parents 7d517b64 ea8ae38b
......@@ -3374,7 +3374,7 @@ function xmldb_core_upgrade($oldversion=0) {
$todb->objectid = $record->view;
$todb->reportedby = 0;
$todb->report = '';
$todb->reportedtime = $record->ctime;
$todb->reportedtime = ($record->ctime) ? $record->ctime : format_date(time());
if (!empty($record->stopdate)) {
// Since we can't get an ID of a user who resolved an issue, use root ID.
$todb->resolvedby = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment