fixed smal prob with non existing header

This commit is contained in:
Ralf Becker 2006-05-31 01:58:03 +00:00
parent 7690dd10f7
commit ecae41f156

View File

@ -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']))
{