mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-02 06:57:40 +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'])) {
|
if(isset($this->_dms->callbacks['onPreRemoveDocument'])) {
|
||||||
foreach($this->_dms->callbacks['onPreRemoveDocument'] as $callback) {
|
foreach($this->_dms->callbacks['onPreRemoveDocument'] as $callback) {
|
||||||
$ret = call_user_func($callback[0], $callback[1], $this);
|
$ret = call_user_func($callback[0], $callback[1], $this);
|
||||||
if(is_bool($ret))
|
if($ret === false)
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user