2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* general/shortcut_bar.php: Fixed bug when the user doesn't have
	'LM' permissions.  



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-02-02 14:27:23 +00:00
parent c15f7a5de3
commit f37604cedf
2 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* general/shortcut_bar.php: Fixed bug when the user doesn't have
'LM' permissions.
2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_api.php: Added get_alert_template function to

View File

@ -71,8 +71,13 @@
id_grupo IN (".implode (",",array_keys ($own_groups)).") AND estado IN (0)
ORDER BY actualizacion";
$result_incidents_update = db_get_all_rows_sql ($sql);
if (!empty($own_groups)){
$result_incidents_update = db_get_all_rows_sql ($sql);
}
else{
$result_incidents_update = false;
}
if ($result_incidents_update === false)
$shortcut_incidents = 0;
@ -145,9 +150,13 @@
$sql = "SELECT count(*) total_incidents FROM tincidencia WHERE
id_grupo IN (".implode (",",array_keys ($own_groups)).") AND estado IN (0)
ORDER BY actualizacion";
$result_incidents = db_get_all_rows_sql ($sql);
if (!empty($own_groups)){
$result_incidents = db_get_all_rows_sql ($sql);
}
else {
$result_incidents = false;
}
if ($result_incidents === false)
$shortcut_incidents = 0;