Changeset 6705

Show
Ignore:
Timestamp:
10/03/08 13:54:19 (2 months ago)
Author:
jmathis
Message:

fixe bug #251

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/centreon-2.0/www/include/configuration/configGenerate/formGenerateFiles.php

    r6702 r6705  
    3838         */ 
    3939        if ($n > 1) 
    40                 $tab_nagios_server = array(NULL => ""); 
     40                $tab_nagios_server = array(-1 => ""); 
    4141        /* 
    4242         * Display all servers list 
     
    110110                                print "DB Error : ".$DBRESULT_Servers->getDebugInfo()."<br />"; 
    111111                        while ($tab =& $DBRESULT_Servers->fetchRow()){ 
    112                                 if (isset($ret["host"]) && $ret["host"] == 0 || $ret["host"] == $tab['id']){ 
     112                                if (isset($ret["host"]) && $ret["host"] >= 0){ 
    113113                                        unset($DBRESULT2); 
    114114                                        require $path."genCGICFG.php";