[Hw4mdl-svn] SF.net SVN: hw4mdl: [81] trunk/moodle/mod/liveclassroom/lib.php
Brought to you by:
jhlinder,
trollinger
|
From: <sh...@us...> - 2006-10-10 12:27:14
|
Revision: 81
http://svn.sourceforge.net/hw4mdl/?rev=81&view=rev
Author: shazan
Date: 2006-10-10 05:27:07 -0700 (Tue, 10 Oct 2006)
Log Message:
-----------
library update for update rooms
Modified Paths:
--------------
trunk/moodle/mod/liveclassroom/lib.php
Modified: trunk/moodle/mod/liveclassroom/lib.php
===================================================================
--- trunk/moodle/mod/liveclassroom/lib.php 2006-10-10 12:24:19 UTC (rev 80)
+++ trunk/moodle/mod/liveclassroom/lib.php 2006-10-10 12:27:07 UTC (rev 81)
@@ -465,11 +465,15 @@
}
-function liveclassroom_rooms_update_instance($liveclassroom_rooms) {
+function liveclassroom_rooms_update_instance($liveclassroom_room) {
- $liveclassroom_rooms->timemodified = time();
- // $liveclassroom_rooms->id = $liveclassroom_rooms->instance;
+ if (! $liveclassroom_rooms = get_record("liveclassroom_rooms", "room_id", "$liveclassroom_room->room_id")) {
+ return false;
+ }
+ $liveclassroom_rooms->timemodified = time();
+ $liveclassroom_rooms->name = $liveclassroom_room->name;
+
if(!(update_record("liveclassroom_rooms", $liveclassroom_rooms))) {
error( "Response: update of instance liveclassroom_rooms failed");
//return false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|