FIxed the LIMIT bug I just made ... need to find a better way

as this sets off get_record alarms
This commit is contained in:
moodler
2003-07-25 08:19:33 +00:00
parent d2c538f1fb
commit 30e72d4227
+2 -2
View 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");
}
//////////////////////////////////////////////////////////////////////