mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:19:06 +01:00
added function-backtrace to db-error-messages
This commit is contained in:
parent
cb12c82707
commit
94a2f4e043
@ -330,6 +330,7 @@
|
||||
{
|
||||
printf("<br><b>Line:</b> %s",$line);
|
||||
}
|
||||
printf("<br><b>Function:</b> %s\n",function_backtrace());
|
||||
|
||||
if ($this->Halt_On_Error != "report")
|
||||
{
|
||||
|
@ -430,6 +430,7 @@
|
||||
{
|
||||
printf("<br><b>Line:</b> %s",$line);
|
||||
}
|
||||
printf("<br><b>Function:</b> %s\n",function_backtrace());
|
||||
|
||||
if ($this->Halt_On_Error != "report")
|
||||
{
|
||||
|
@ -65,11 +65,11 @@
|
||||
. $this->ifadd("'".$Password."'", 'password=');
|
||||
if ($GLOBALS['phpgw_info']['server']['db_persistent'])
|
||||
{
|
||||
$this->Link_ID=pg_pconnect($cstr);
|
||||
$this->Link_ID = pg_pconnect($cstr);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->Link_ID=pg_connect($cstr);
|
||||
$this->Link_ID = pg_connect($cstr);
|
||||
}
|
||||
|
||||
if (! $this->Link_ID)
|
||||
@ -437,6 +437,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->xmlrpc || $this->soap)
|
||||
{
|
||||
$s .= sprintf("Function/Module: %s\n",function_backtrace());
|
||||
}
|
||||
else
|
||||
{
|
||||
$s .= sprintf("<br><b>Function/Module:</b> %s\n",function_backtrace());
|
||||
}
|
||||
|
||||
if ($this->Halt_On_Error == 'yes')
|
||||
{
|
||||
if (! $this->xmlrpc && ! $this->soap)
|
||||
@ -456,7 +465,14 @@
|
||||
else
|
||||
{
|
||||
echo $s;
|
||||
$GLOBALS['phpgw']->common->phpgw_exit(True);
|
||||
if (is_object($GLOBALS['phpgw']->common))
|
||||
{
|
||||
$GLOBALS['phpgw']->common->phpgw_exit(True);
|
||||
}
|
||||
else
|
||||
{
|
||||
exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user