diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 19dcc00b35..fdc0b922e5 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-07-22 Sergio Martin + + * operation/events/events_marquee.php: Fixed a sql error + of the events marquee when no groups in the system + 2011-07-21 Sergio Martin * godmode/users/profile_list.php diff --git a/pandora_console/operation/events/events_marquee.php b/pandora_console/operation/events/events_marquee.php index 6a1d742028..6a44d3b337 100644 --- a/pandora_console/operation/events/events_marquee.php +++ b/pandora_console/operation/events/events_marquee.php @@ -51,7 +51,12 @@ if(!isInACL($_SERVER['REMOTE_ADDR'])){ $groups = users_get_groups ($config["id_user"], "AR"); //Otherwise select all groups the user has rights to. -$sql_group_filter = " AND id_grupo IN (".implode (",", array_keys ($groups)).")"; +if(!empty($groups)) { + $sql_group_filter = " AND id_grupo IN (".implode (",", array_keys ($groups)).")"; +} +else { + $sql_group_filter = ""; +} // Skip system messages if user is not PM if (!check_acl ($config["id_user"], 0, "PM")) {