]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib: cleanup_dirty_contexts() - also forget about CAST()s
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:56:43 +0000 (07:56 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:56:43 +0000 (07:56 +0000)
lib/accesslib.php

index 8d6685f08ba4409e103c056164a5b744ff7afc46..8092763353d5304342135e4a5ced7348dccff71f 100755 (executable)
@@ -4609,7 +4609,7 @@ function cleanup_dirty_contexts() {
     global $CFG;
     
     $sql = "plugin='accesslib/dirtycontexts' AND
-                  CAST(value AS DECIMAL) < " . time() - $CFG->sessiontimeout;
+            value < " . time() - $CFG->sessiontimeout;
     delete_records_select('config_plugins', $sql);
 }