cron.php bug moodle 1.8

cron.php bug moodle 1.8

by peter m -
Number of replies: 0
Hi

I have php5 sql5, i found bug in cron.php for delete log.
= bad (not work) =
DELETE FROM mdl_log WHERE time<'1148890561'
Bug is: time!
time is sql function, sql return error
(TRY ACTIVE PHP error_reporting() function)

= true =
DELETE FROM `mdl_log` WHERE `time` < '1148890561'
I add sql syntax!

Peter
Average of ratings: -