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:
+2
-2
@@ -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");
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user