projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e1c2323
)
fix #7802 - read only db trying to write to DB
author
Alan
<alan@roojs.com>
Wed, 6 Sep 2023 02:44:03 +0000
(10:44 +0800)
committer
Alan
<alan@roojs.com>
Wed, 6 Sep 2023 02:44:03 +0000
(10:44 +0800)
Pman.php
patch
|
blob
|
history
diff --git
a/Pman.php
b/Pman.php
index
277bf4b
..
ddbb4ae
100644
(file)
--- a/
Pman.php
+++ b/
Pman.php
@@
-1145,7
+1145,9
@@
class Pman extends HTML_FlexyFramework_Page
function addEvent($act, $obj = false, $remarks = '')
{
function addEvent($act, $obj = false, $remarks = '')
{
- if (!empty(HTML_FlexyFramework::get()->Pman['disable_events'])) {
+ if (!empty(HTML_FlexyFramework::get()->Pman['disable_events'])
+ || !empty(HTML_FlexyFramework::get()->database_is_readonly)
+ ) {
$str = $obj !== false ? "{$obj->tableName()}:{$obj->id} " : '';
$de = ini_set('display_errors', 0);
trigger_error("$act {$str}{$remarks}" , E_USER_NOTICE);
$str = $obj !== false ? "{$obj->tableName()}:{$obj->id} " : '';
$de = ini_set('display_errors', 0);
trigger_error("$act {$str}{$remarks}" , E_USER_NOTICE);