mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
use isType() for checking object type
This commit is contained in:
parent
25f569b9eb
commit
d449d2bcee
|
@ -424,10 +424,10 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe
|
|||
|
||||
if($settings->_showSingleSearchHit && count($entries) == 1) {
|
||||
$entry = $entries[0];
|
||||
if(get_class($entry) == $dms->getClassname('document')) {
|
||||
if($entry->isType('document')) {
|
||||
header('Location: ../out/out.ViewDocument.php?documentid='.$entry->getID());
|
||||
exit;
|
||||
} elseif(get_class($entry) == $dms->getClassname('folder')) {
|
||||
} elseif($entry->isType('folder')) {
|
||||
header('Location: ../out/out.ViewFolder.php?folderid='.$entry->getID());
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user