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:
parent
c15f7a5de3
commit
f37604cedf
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
@ -146,8 +151,12 @@
|
|||
id_grupo IN (".implode (",",array_keys ($own_groups)).") AND estado IN (0)
|
||||
ORDER BY actualizacion";
|
||||
|
||||
if (!empty($own_groups)){
|
||||
$result_incidents = db_get_all_rows_sql ($sql);
|
||||
|
||||
}
|
||||
else {
|
||||
$result_incidents = false;
|
||||
}
|
||||
|
||||
if ($result_incidents === false)
|
||||
$shortcut_incidents = 0;
|
||||
|
|
Loading…
Reference in New Issue