]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed Tim's bug with the chat not updating - bug 1151
authormoodler <moodler>
Mon, 29 Mar 2004 06:02:21 +0000 (06:02 +0000)
committermoodler <moodler>
Mon, 29 Mar 2004 06:02:21 +0000 (06:02 +0000)
His chat->intro had 'quotes' in it

mod/chat/lib.php

index 5581a4fb78e5f680f1c997c207c918ad652426ab..c6a77bb5d8793a712495cddcbeed4298a106b04c 100644 (file)
@@ -296,6 +296,8 @@ function chat_update_chat_times($chatid=0) {
     }
 
     foreach ($chats as $chat) {
+        unset($chat->name);
+        unset($chat->intro);
         switch ($chat->schedule) {
             case 1: // Single event - turn off schedule and disable
                     $chat->chattime = 0;