]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16979 - protects update queries by setting a real value in $CFG->search_indexer_u...
authordiml <diml>
Mon, 11 May 2009 19:59:58 +0000 (19:59 +0000)
committerdiml <diml>
Mon, 11 May 2009 19:59:58 +0000 (19:59 +0000)
search/update.php

index 0e55bab3ad664a77b4e0b3c072fe72431c09dcab..e702eb42bcd6b779a003664fe186f437b545c099 100644 (file)
@@ -56,7 +56,7 @@
     }
     $dbcontrol = new IndexDBControl();
     $update_count = 0;
-    $indexdate = @$CFG->search_indexer_update_date;
+    $indexdate = 0 + @$CFG->search_indexer_update_date;
     $startupdatedate = time();
 
 /// indexing changed resources