]> git.mjollnir.org Git - moodle.git/commitdiff
Applying new rs_xxx() functions everywhere. MDL-8134
authorstronk7 <stronk7>
Mon, 29 Jan 2007 19:16:33 +0000 (19:16 +0000)
committerstronk7 <stronk7>
Mon, 29 Jan 2007 19:16:33 +0000 (19:16 +0000)
Merged from MOODLE_17_STABLE

mod/chat/lib.php

index 7fe38cead78ad5ddc60ae87b90260faec2a90392..fc27434381ced50c7dfbff5eec47d7d00ccacc4b 100644 (file)
@@ -354,7 +354,7 @@ function chat_get_latest_message($chatid, $groupid=0) {
         return false;
     }
     if ($rs->RecordCount() == 1) {
-        return (object)$rs->fields;
+        return rs_fetch_record($rs);
     } else {
         return false;                 // Found no records
     }