From 2c88ef8bae10db7f8d3dc5c726b12c389c96315f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 13 Jun 2006 07:26:23 +0000 Subject: [PATCH] Fixed empty restore git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3792 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_divListSystem.inc | 9 ++++++--- plugins/admin/systems/snapshotdialog.tpl | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc index d92675614..fd43f1cb3 100644 --- a/plugins/admin/systems/class_divListSystem.inc +++ b/plugins/admin/systems/class_divListSystem.inc @@ -279,9 +279,12 @@ class divListSystem extends MultiSelectWindow /* Restore is requested, restore the object with the posted dn .*/ if((isset($_POST['RestoreSnapshot'])) && (isset($_POST['SnapShot']))){ - $entry = base64_decode($_POST['SnapShot']); - $this->parent->restore_snapshot($entry); - $this->parent->systab = NULL; + $entry =trim($_POST['SnapShot']); + if(!empty($entry)){ + $entry = base64_decode($entry); + $this->parent->restore_snapshot($entry); + $this->parent->systab = NULL; + } } } } diff --git a/plugins/admin/systems/snapshotdialog.tpl b/plugins/admin/systems/snapshotdialog.tpl index d81c53518..3495d77cb 100755 --- a/plugins/admin/systems/snapshotdialog.tpl +++ b/plugins/admin/systems/snapshotdialog.tpl @@ -21,7 +21,7 @@ -- 2.30.2