From e38b703f77246a68e8dab6fba9212b44eb05499a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 19 May 2005 06:56:04 +0000 Subject: [PATCH] fixed: saving of imported templates was not working --- etemplate/inc/class.editor.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.editor.inc.php b/etemplate/inc/class.editor.inc.php index 43ad639b44..ff4b966eb9 100644 --- a/etemplate/inc/class.editor.inc.php +++ b/etemplate/inc/class.editor.inc.php @@ -296,9 +296,9 @@ $this->etemplate->init($content['import']); $preserv['import'] = $content['import']; } - elseif ($content['save']) + if ($content['save']) { - $this->etemplate->read($content['old_keys']); + if (!is_array($content['import'])) $this->etemplate->read($content['old_keys']); if (!$this->etemplate->modified_set || !$this->etemplate->modified) {