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