diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 22eee7ad8f7..c8f68fc7238 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -366,8 +366,6 @@ function chat_get_latest_message($chatid, $groupid=0) { $result = rs_fetch_record($rs); - rs_close($result); - return $result; }