From a9ea2f8cf963955a9ba0c22051c3900613481fea Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 8 Feb 2005 18:21:07 +0000 Subject: [PATCH] using clone() to create copies of the db-object for php5 compatibility --- etemplate/inc/class.soetemplate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.soetemplate.inc.php b/etemplate/inc/class.soetemplate.inc.php index b2ab441402..870936fb0c 100644 --- a/etemplate/inc/class.soetemplate.inc.php +++ b/etemplate/inc/class.soetemplate.inc.php @@ -76,7 +76,7 @@ */ function soetemplate($name='',$template='',$lang='',$group=0,$version='',$rows=1,$cols=1) { - $this->db = $GLOBALS['phpgw']->db; + $this->db = clone($GLOBALS['phpgw']->db); $this->db_cols = $this->db_key_cols + $this->db_data_cols; if (empty($name))