summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b46d307)
raw | patch | inline | side by side (parent: b46d307)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Apr 2006 04:15:28 +0000 (04:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Apr 2006 04:15:28 +0000 (04:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2998 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_termDNS.inc | patch | blob | history |
index 299335cb8f2bf3ce08eab97890d0304c008b04f3..b6b6b352f0126103dc1c2a9da990e306b2b802c3 100644 (file)
if(isset($_POST['network_tpl_posted'])){
/* Check for posted record changes */
- foreach($this->dnsEntry['RECORDS'] as $key => $value){
-
- /* Check if type has changed */
- if(isset($_POST['RecordTypeSelectedFor_'.$key])){
- $this->dnsEntry['RECORDS'][$key]['type'] = $_POST['RecordTypeSelectedFor_'.$key];
- }
- /* Check if value has changed */
- if(isset($_POST['RecordValue_'.$key])){
- $this->dnsEntry['RECORDS'][$key]['value'] = $_POST['RecordValue_'.$key];
+ if(is_array($this->dnsEntry['RECORDS'])){
+ foreach($this->dnsEntry['RECORDS'] as $key => $value){
+
+ /* Check if type has changed */
+ if(isset($_POST['RecordTypeSelectedFor_'.$key])){
+ $this->dnsEntry['RECORDS'][$key]['type'] = $_POST['RecordTypeSelectedFor_'.$key];
+ }
+ /* Check if value has changed */
+ if(isset($_POST['RecordValue_'.$key])){
+ $this->dnsEntry['RECORDS'][$key]['value'] = $_POST['RecordValue_'.$key];
+ }
}
}
-
/* Get all basic DNS attributes (TTL, Clas ..)*/
foreach($this->DNSattributes as $attr){
if(isset($_POST[$attr])){