Sfoglia il codice sorgente

Se agrega if en la verificación en docsIfCmtsCmStatusValue

Maximiliano Schvindt 9 anni fa
parent
commit
9c0a857784
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      OSS_SNMP/MIBS/DocsIfCmts.php

+ 1 - 1
OSS_SNMP/MIBS/DocsIfCmts.php

@@ -287,7 +287,7 @@ accessDenied(7)   The CMTS has sent a Registration Aborted message   to the CM
         $rtr = $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusValue);
         $replace = array(1 => 'other' , 2 =>  'ranging', 3 => 'rangingAborted', 4 => 'rangingComplete', 5 => 'ipComplete',
                         6 => 'registrationComplete', 7 => 'accessDenied');
-        foreach($rtr as $k => $v){ $rtr[$k] = $replace[$v]; }
+        foreach($rtr as $k => $v){ if(isset($replace[$v])) {$rtr[$k] = $replace[$v];} }
 	return $rtr;
         
     }