Commit 4d18b12a authored by Aaron Wells's avatar Aaron Wells
Browse files

Check whether $CFG->cacheversion exists before initializing it

Bug 1384481

Change-Id: I14a61c08229de51f8e0bb25aa12c42826f2f1639
parent 393796b0
......@@ -3217,7 +3217,9 @@ function xmldb_core_upgrade($oldversion=0) {
// to tell cacheing software when they've been updated. (Without having to use the Mahara
// minor version for that purpose.)
// Set this to a random starting number to make minor version slightly harder to detect
if (!get_config('cacheversion')) {
set_config('cacheversion', rand(1000, 9999));
return $status;
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