I have found a bug!
I think this is caused by PHP version (b/c the same worked in PHP 4).
So if you are using PHP 5, you have to change Meeting.php and Call.php.
Meeting.php:
PHP Code:
function get_meeting_users()
{
// First, get the list of IDs.
$query = "SELECT meetings_users.required, meetings_users.accept_status, meetings_users.user_id from meetings_users where meetings_users.meeting_id='$this->id' AND meetings_users.deleted=0";
$GLOBALS['log']->debug("Finding linked records $this->object_name: ".$query);
$result = $this->db->query($query, true);
$list = Array();
while($row = $this->db->fetchByAssoc($result))
{
$template = new User();
$record = $template->retrieve($row['user_id']);
$template->required = $row['required'];
$template->accept_status = $row['accept_status'];
if($record != null)
{
// this copies the object into the array
$list[] = $template;
}
}
return $list;
}
Call.php:
PHP Code:
function get_call_users()
{
// First, get the list of IDs.
$query = "SELECT calls_users.required, calls_users.accept_status, calls_users.user_id from calls_users where calls_users.call_id='$this->id' AND calls_users.deleted=0";
$GLOBALS['log']->debug("Finding linked records $this->object_name: ".$query);
$result = $this->db->query($query, true);
$list = Array();
while($row = $this->db->fetchByAssoc($result))
{
$template = new User();
$record = $template->retrieve($row['user_id']);
$template->required = $row['required'];
$template->accept_status = $row['accept_status'];
if($record != null)
{
// this copies the object into the array
$list[] = $template;
}
}
return $list;
}
Bookmarks