From feec7760adeb4c2e682f764601e4f15fa5b1405d Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 12 Nov 2007 07:39:31 +0000 Subject: [PATCH] Closes #251 Used php5 function in stable git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7763 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNSeditZone.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index c06b42ce8..0b9850e0b 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -223,7 +223,7 @@ class servdnseditZone extends plugin /* Save Zone Entry Edit Dialog */ - if(isset($_POST['SaveZoneEntryChanges'])){ + if(isset($_POST['SaveZoneEntryChanges']) && is_object($this->dialog)){ $this->dialog->save_object(); if(count($this->dialog->check())){ $msgs = $this->dialog->check(); @@ -231,7 +231,11 @@ class servdnseditZone extends plugin print_red($msg); } }else{ - $this->zoneEditor = clone $this->dialog; + if (version_compare(phpversion(), '5.0') < 0) { + $this->zoneEditor = $this->dialog; + }else{ + $this->zoneEditor = clone($this->dialog); + } $this->dialog = FALSE; # $rev = FlipIp(getNameFromMix($this->InitialReverseZone)).".in-addr.arpa"; # $for = getNameFromMix($this->InitialzoneName); -- 2.30.2