summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c648ba8)
raw | patch | inline | side by side (parent: c648ba8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Nov 2007 07:39:31 +0000 (07:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Nov 2007 07:39:31 +0000 (07:39 +0000) |
Used php5 function in stable
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7763 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7763 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZone.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc
index c06b42ce8f767393fd8770f4430ca1350d727afd..0b9850e0bd423e70d58527e06c7c8faa9f989e81 100644 (file)
/* 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();
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);