mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
fixed fatal error if no connection (db does not exist)
This commit is contained in:
parent
30d3bedaa4
commit
f1cf865b12
@ -575,11 +575,11 @@
|
||||
*/
|
||||
function halt($msg, $line = '', $file = '')
|
||||
{
|
||||
$this->Error = $this->Link_ID->ErrorMsg(); // need to be BEFORE unlock,
|
||||
$this->Errno = $this->Link_ID->ErrorNo(); // else we get its error or none
|
||||
|
||||
if ($this->Link_ID) // only if we have a link, else infinite loop
|
||||
{
|
||||
$this->Error = $this->Link_ID->ErrorMsg(); // need to be BEFORE unlock,
|
||||
$this->Errno = $this->Link_ID->ErrorNo(); // else we get its error or none
|
||||
|
||||
$this->unlock(); /* Just in case there is a table currently locked */
|
||||
}
|
||||
if ($this->Halt_On_Error == "no")
|
||||
|
Loading…
Reference in New Issue
Block a user