Ad Widget

Collapse

Zabbix 1.8.3 API: function delete

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • axterics
    Junior Member
    • Jan 2009
    • 12

    #1

    Zabbix 1.8.3 API: function delete

    frontends/php/api/classes/class.chost.php
    Code:
    public static function delete($hostids){
                    //$hostids = zbx_toArray($hostids);
                    if(empty($hostids)) return true;
    The first line create an array inside the array so the next foreach statment fail.

    This fix also this error:


    This fix I believe break the delete of multiple hosts...
    Last edited by axterics; 20-11-2010, 18:59.
  • axterics
    Junior Member
    • Jan 2009
    • 12

    #2
    fixed in 1.8.4

    Comment

    Working...