From ecae41f1566839d784409ca13960a4ae180bee7f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 31 May 2006 01:58:03 +0000 Subject: [PATCH] fixed smal prob with non existing header --- phpgwapi/inc/class.translation.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index 0f1e66282b..2149422c4e 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -61,7 +61,7 @@ $this->placeholders[] = '%'.$i; } $this->db = is_object($GLOBALS['egw']->db) ? $GLOBALS['egw']->db : $GLOBALS['egw_setup']->db; - $this->db->set_app('phpgwapi'); + if (is_object($this->db)) $this->db->set_app('phpgwapi'); if (!isset($GLOBALS['egw_setup'])) {