fixed problem when trying to write error message
This commit is contained in:
		
							parent
							
								
									8e32deab63
								
							
						
					
					
						commit
						17c0654c65
					
				|  | @ -501,6 +501,7 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I | ||||||
| 	 * @return htmlElement HTML meta data | 	 * @return htmlElement HTML meta data | ||||||
| 	 */ | 	 */ | ||||||
| 	public function display_html_attributes() { | 	public function display_html_attributes() { | ||||||
|  | 		$return = new htmlTable(); | ||||||
| 		// check if DHCP main settings and valid DHCP entry
 | 		// check if DHCP main settings and valid DHCP entry
 | ||||||
| 		if ($_SESSION['config']->get_suffix('dhcp') == $this->getAccountContainer()->dn_orig) { | 		if ($_SESSION['config']->get_suffix('dhcp') == $this->getAccountContainer()->dn_orig) { | ||||||
| 			if (!in_array_ignore_case('dhcpServer', $this->attributes['objectClass'])) { | 			if (!in_array_ignore_case('dhcpServer', $this->attributes['objectClass'])) { | ||||||
|  | @ -508,7 +509,6 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I | ||||||
| 				return $return; | 				return $return; | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 		$return = new htmlTable(); |  | ||||||
| 		// Subnet name
 | 		// Subnet name
 | ||||||
| 		if ($_SESSION['config']->get_suffix('dhcp') != $this->getAccountContainer()->dn_orig) { | 		if ($_SESSION['config']->get_suffix('dhcp') != $this->getAccountContainer()->dn_orig) { | ||||||
| 			$cn = ''; | 			$cn = ''; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue