mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
check if document exists before adding it to result array
This commit is contained in:
parent
99fbf808fd
commit
abd8b77b2f
|
@ -98,7 +98,8 @@ class SeedDMS_Core_DocumentCategory {
|
|||
|
||||
$documents = array();
|
||||
foreach ($resArr as $row) {
|
||||
array_push($documents, $this->_dms->getDocument($row["documentID"]));
|
||||
if($doc = $this->_dms->getDocument($row["documentID"]))
|
||||
array_push($documents, $doc);
|
||||
}
|
||||
return $documents;
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user