mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
onPreRemoveDocument hook returns when return value is a boolean
This commit is contained in:
parent
79bf501155
commit
7e4514c450
|
@ -2189,7 +2189,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($ret === false)
|
if(is_bool($ret))
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user