Minor addition of duplicate attribute in OpenMeetings plugin - refs BT#7046 refs #5491

1.9.x
Yannick Warnier 11 years ago
parent 63ce207bd3
commit 1d4dbb2782
  1. 6
      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'];

Loading…
Cancel
Save