]> git.mjollnir.org Git - moodle.git/commitdiff
FIx to help PostgreSQL .... fix from Bruno Vernier Bug 1270
authormoodler <moodler>
Mon, 26 Apr 2004 02:54:55 +0000 (02:54 +0000)
committermoodler <moodler>
Mon, 26 Apr 2004 02:54:55 +0000 (02:54 +0000)
mod/chat/lib.php

index 6f4801c89091c381d17c3c04b25cb611a9800d43..cbb0e743982f5d5c6a8237c57b35613e02e17841 100644 (file)
@@ -273,7 +273,7 @@ function chat_get_users($chatid, $groupid=0) {
         $groupselect = "";
     }
    
-    return get_records_sql("SELECT DISTINCT u.id, u.firstname, u.lastname, u.picture, c.lastmessageping
+    return get_records_sql("SELECT DISTINCT u.id, u.firstname, u.lastname, u.picture, c.lastmessageping, c.firstping
                               FROM {$CFG->prefix}chat_users c,
                                    {$CFG->prefix}user u
                              WHERE c.chatid = '$chatid'