mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fixed fatal error if no connection (db does not exist)
This commit is contained in:
parent
30d3bedaa4
commit
f1cf865b12
@ -574,12 +574,12 @@
|
||||
* @param string $file file of calling method/function (optional)
|
||||
*/
|
||||
function halt($msg, $line = '', $file = '')
|
||||
{
|
||||
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
|
||||
|
||||
if ($this->Link_ID) // only if we have a link, else infinite loop
|
||||
{
|
||||
$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