diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index 46335a4c9a..d2d0904368 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -177,9 +177,9 @@ class so_sql * * @deprecated use __construct */ - function so_sql($app='',$table='',$db=null,$column_prefix='') + function so_sql($app='',$table='',$db=null,$column_prefix='',$no_clone=false) { - self::__construct($app,$table,$db,$column_prefix); + self::__construct($app,$table,$db,$column_prefix,$no_clone); } /** diff --git a/etemplate/inc/class.so_sql2.inc.php b/etemplate/inc/class.so_sql2.inc.php index 0e11076cd8..fd1c88d320 100644 --- a/etemplate/inc/class.so_sql2.inc.php +++ b/etemplate/inc/class.so_sql2.inc.php @@ -48,12 +48,14 @@ class so_sql2 extends so_sql * @param string $table should be set if table-defs to be read from /setup/tables_current.inc.php * @param object/db $db database object, if not the one in $GLOBALS['egw']->db should be used, eg. for an other database * @param string $colum_prefix='' column prefix to automatic remove from the column-name, if the column name starts with it + * @param boolean $no_clone=false can we avoid to clone the db-object, default no + * new code using appnames and foreach(select(...,$app) can set it to avoid an extra instance of the db object * * @return so_sql2 */ - function __construct($app='',$table='',$db=null,$column_prefix='') + function __construct($app='',$table='',$db=null,$column_prefix='',$no_clone=false) { - parent::__construct($app,$table,$db,$column_prefix); + parent::__construct($app,$table,$db,$column_prefix,$no_clone); } /** @@ -61,9 +63,9 @@ class so_sql2 extends so_sql * * @deprecated use __construct */ - function so_sql2($app='',$table='',$db=null,$column_prefix='') + function so_sql2($app='',$table='',$db=null,$column_prefix='',$no_clone=false) { - self::__construct($app,$table,$db,$column_prefix); + self::__construct($app,$table,$db,$column_prefix,$no_clone); } /**