diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8732c0488c..f407b6ca2b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-01-16 Sergio Martin + + * operation/events/events.php: Hide the history events tab + when history events are disabled + 2013-01-16 Sergio Martin * include/ajax/events.php diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 8527be8e6c..3060d149aa 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -270,6 +270,11 @@ if ($config["pure"] == 0 || defined ('METACONSOLE')) { 'csv' => $csv, 'sound_event' => $sound_event) ; } + + // If the history event is not ebabled, dont show the history tab + if(!isset($config['metaconsole_events_history']) || $config['metaconsole_events_history'] != 1) { + unset($onheader['history']); + } switch ($section) { case 'sound_event':