mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 21:51:14 +01:00
suppressed warning about unknown user/pw if db not yet created
This commit is contained in:
parent
62964576bd
commit
26eef15651
@ -259,7 +259,10 @@
|
|||||||
|
|
||||||
if (!$GLOBALS['phpgw_setup']->db->Link_ID)
|
if (!$GLOBALS['phpgw_setup']->db->Link_ID)
|
||||||
{
|
{
|
||||||
|
$old = error_reporting();
|
||||||
|
error_reporting($old & ~E_WARNING); // no warnings
|
||||||
$GLOBALS['phpgw_setup']->db->connect();
|
$GLOBALS['phpgw_setup']->db->connect();
|
||||||
|
error_reporting($old);
|
||||||
}
|
}
|
||||||
if (!$GLOBALS['phpgw_setup']->db->Link_ID)
|
if (!$GLOBALS['phpgw_setup']->db->Link_ID)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user