]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed the LIMIT bug I just made ... need to find a better way
authormoodler <moodler>
Fri, 25 Jul 2003 08:19:33 +0000 (08:19 +0000)
committermoodler <moodler>
Fri, 25 Jul 2003 08:19:33 +0000 (08:19 +0000)
as this sets off get_record alarms

mod/chat/lib.php

index a0c80f4213f5263f9f2b4f1b88b92d24e2c8429a..a875d435b33c0cd7e107c1a3a9c5c30325019a74 100644 (file)
@@ -186,10 +186,10 @@ function chat_get_latest_message($chatid) {
 
     global $CFG;
 
-    return get_record_sql("SELECT * 
+    return get_record_sql("SELECT *
                              FROM {$CFG->prefix}chat_messages 
                             WHERE chatid = '$chatid' 
-                         ORDER BY timestamp DESC LIMIT 1");
+                         ORDER BY timestamp DESC");
 }
 
 //////////////////////////////////////////////////////////////////////