2011-07-22 Sergio Martin <sergio.martin@artica.es>

* operation/events/events_marquee.php: Fixed a sql error
	of the events marquee when no groups in the system



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4620 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-07-22 09:08:54 +00:00
parent 9967efd7e6
commit b69b1621f4
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-07-22 Sergio Martin <sergio.martin@artica.es>
* operation/events/events_marquee.php: Fixed a sql error
of the events marquee when no groups in the system
2011-07-21 Sergio Martin <sergio.martin@artica.es>
* godmode/users/profile_list.php

View File

@ -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")) {