From 07f7e61e91f8dd3c378de6b43fa590da45ba53b1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 27 Aug 2011 09:03:32 +0000 Subject: [PATCH] do not call parent constructor for old etemplate --- etemplate/inc/class.contact_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.contact_widget.inc.php b/etemplate/inc/class.contact_widget.inc.php index 91cdfd5baa..ee792faebb 100644 --- a/etemplate/inc/class.contact_widget.inc.php +++ b/etemplate/inc/class.contact_widget.inc.php @@ -120,11 +120,11 @@ class contact_widget extends etemplate_widget_transformer /** * Constructor of the extension * - * @param string $ui '' for html + * @param string $xml or 'html' for old etemplate */ function __construct($xml) { - if (is_a($xml, 'XMLReader') || $xml != '') + if (is_a($xml, 'XMLReader') || $xml != '' && $xml != 'html') { parent::__construct($xml); }