mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
also set Error/Errno, if database is readonly
This commit is contained in:
parent
bb369167e2
commit
0f80e158ff
@ -757,7 +757,12 @@ class Db
|
||||
if (($this->readonly || $this->log_updates) && !preg_match('/^\(?(SELECT|SET|SHOW)/i', $Query_String))
|
||||
{
|
||||
if ($this->log_updates) error_log($Query_String.': '.function_backtrace());
|
||||
if ($this->readonly) return 0;
|
||||
if ($this->readonly)
|
||||
{
|
||||
$this->Error = 'Database is readonly';
|
||||
$this->Errno = -2;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if ($num_rows > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user