When configuring 'actions', the page will not be displayed. The following error is display in the httpd error log:
PHP Parse error: syntax error, unexpected '}' in /var/www/html/zabbix/actionconf.php on line 136
Added '{" around line 130 see changes in red below.
Before:
After:
PHP Parse error: syntax error, unexpected '}' in /var/www/html/zabbix/actionconf.php on line 136
Added '{" around line 130 see changes in red below.
Before:
Code:
[COLOR="Red"]if($result) // result - OK{[/COLOR]
add_audit(!isset($_REQUEST['actionid']) ? AUDIT_ACTION_ADD : AUDIT_ACTION_UPDATE,AUDIT_RESOURCE_ACTION,
S_NAME.': '.$_REQUEST['name']);
unset($_REQUEST['form']);
}
}
After:
Code:
if[COLOR="Red"]($result){ // result - OK{[/COLOR]
add_audit(!isset($_REQUEST['actionid']) ? AUDIT_ACTION_ADD : AUDIT_ACTION_UPDATE,AUDIT_RESOURCE_ACTION,
S_NAME.': '.$_REQUEST['name']);
unset($_REQUEST['form']);
}
}
Comment