pass null for controller when calling hook preIndexDocument

This commit is contained in:
Uwe Steinmann 2017-03-03 10:32:41 +01:00
parent 84eb0d4b95
commit 29c5ae0f51

View File

@ -686,7 +686,7 @@ switch($command) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['addDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['addDocument'] as $hookObj) {
if (method_exists($hookObj, 'preIndexDocument')) {
$hookObj->preIndexDocument($document, $idoc);
$hookObj->preIndexDocument(null, $document, $idoc);
}
}
}