From: tjhunt Date: Wed, 10 Sep 2008 10:30:43 +0000 (+0000) Subject: MDL-16411 Oops, I had the logic backwards. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6f49dd0f3676525fc2bd787eafa44c41601929f0;p=moodle.git MDL-16411 Oops, I had the logic backwards. --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index eb84e0b19b..bc191fcdad 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -814,7 +814,7 @@ function xmldb_main_upgrade($oldversion) { // Special case - this is something different from a plugin version number. continue; } - if (preg_match('/^\d{10}$/', $value)) { + if (!preg_match('/^\d{10}$/', $value)) { // Extra safety check, skip anything that does not look like a Moodle // version number (10 digits). continue;