using clone() to create copies of the db-object for php5 compatibility

This commit is contained in:
Ralf Becker 2005-02-08 18:21:07 +00:00
parent c659d9e785
commit a9ea2f8cf9

View File

@ -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))