mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Fix notifications php and id in template.
Pending to generate the list with all the graphs, both those configured in the configuration file and those configured in the mysql database.
This commit is contained in:
parent
e3e099680c
commit
c6f80b6f87
@ -436,7 +436,7 @@ if ( !isset($_POST['op']) && !isset($_GET['op']) )
|
||||
{
|
||||
// --- Set Image for Type
|
||||
// NonNUMERIC are config files Sources, can not be editied
|
||||
if ( is_numeric($myChart['ID']) )
|
||||
if ( ( isset($myChart['ID']) ) && ( is_numeric($myChart['ID']) ) )
|
||||
{
|
||||
// Allow EDIT
|
||||
$myChart['ActionsAllowed'] = true;
|
||||
@ -467,6 +467,9 @@ if ( !isset($_POST['op']) && !isset($_GET['op']) )
|
||||
}
|
||||
else
|
||||
{
|
||||
// define empty ID to update the template correctly.
|
||||
$myChart['ID'] = "";
|
||||
|
||||
// Disallow EDIT
|
||||
$myChart['ActionsAllowed'] = false;
|
||||
|
||||
@ -507,9 +510,9 @@ if ( !isset($_POST['op']) && !isset($_GET['op']) )
|
||||
|
||||
|
||||
// ---
|
||||
|
||||
|
||||
// --- Set Chart default Filterstring
|
||||
if ( strlen($myChart['chart_defaultfilter']) > 0 )
|
||||
if ( ( isset($myChart['chart_defaultfilter']) ) && ( strlen($myChart['chart_defaultfilter']) > 0 ) )
|
||||
$myChart['chart_defaultfilter_urldecoded'] = urlencode($myChart['chart_defaultfilter']);
|
||||
else
|
||||
$myChart['chart_defaultfilter_urldecoded'] = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user