From 1d4dbb27826610695665c6d2e4a652028f15561f Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sat, 4 Jan 2014 16:58:11 -0500 Subject: [PATCH] Minor addition of duplicate attribute in OpenMeetings plugin - refs BT#7046 refs #5491 --- plugin/openmeetings/lib/room.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/openmeetings/lib/room.class.php b/plugin/openmeetings/lib/room.class.php index 50be1275c2..f555b32fbf 100644 --- a/plugin/openmeetings/lib/room.class.php +++ b/plugin/openmeetings/lib/room.class.php @@ -10,8 +10,10 @@ namespace Chamilo\Plugin\OpenMeetings; class Room { public $SID; + // Defining plural and non-plural because of inconsistency in OpenMeetings public $rooms_id; - public $status; + public $room_id; + public $status; //false for closed, true for open public $name; public $roomtypes_id; public $comment; @@ -29,7 +31,7 @@ class Room $this->table = Database::get_main_table('plugin_openmeetings'); if (!empty($id)) { $roomData = Database::select('*', $this->table, array('where' => array('id = ?' => $id)), 'first'); - $this->rooms_id = $roomData['room_id']; + $this->rooms_id = $this->room_id = $roomData['room_id']; $this->status = $roomData['status']; $this->name = $roomData['meeting_name']; $this->comment = $roomData['welcome_msg'];