]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16411 Oops, I had the logic backwards.
authortjhunt <tjhunt>
Wed, 10 Sep 2008 10:30:43 +0000 (10:30 +0000)
committertjhunt <tjhunt>
Wed, 10 Sep 2008 10:30:43 +0000 (10:30 +0000)
lib/db/upgrade.php

index eb84e0b19bbff48dc17420fc62025b32a8191645..bc191fcdade820ecfe18f3ff2ba35eeb92a6f79c 100644 (file)
@@ -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;