Ad Widget

Collapse

Zabbix 1.5.2 (trunk 5675) - actionconf.php unexpected '}'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Zabbix 1.5.2 (trunk 5675) - actionconf.php unexpected '}'

    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:
    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']);
                    }
            }
    Last edited by Palmertree; 04-05-2008, 23:19.
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    Fixed. Thank you.
    Zabbix | ex GUI developer

    Comment

    Working...