mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 14:07:16 +00:00
check for === false after calling onPreRemoveDocument
This commit is contained in:
parent
e4e7dd838f
commit
0640b39c85
|
@ -2068,7 +2068,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
if(isset($this->_dms->callbacks['onPreRemoveDocument'])) {
|
||||
foreach($this->_dms->callbacks['onPreRemoveDocument'] as $callback) {
|
||||
$ret = call_user_func($callback[0], $callback[1], $this);
|
||||
if(is_bool($ret))
|
||||
if($ret === false)
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user