* Code for bug #15518.

This commit is contained in:
hufangzhou
2021-10-14 16:01:31 +08:00
parent e6640c6f2c
commit 0541e5a87c
+2 -2
View File
@@ -475,7 +475,7 @@ class doc extends control
/* Get doc. */
$docID = (int)$docID;
$doc = $this->doc->getById($docID, $version, true);
if(!$doc) die(js::error($this->lang->notFound) . js::locate('back'));
if(!$doc) die(js::error($this->lang->notFound) . js::locate($this->createLink('doc', 'index')));
/* The global search opens in the document library. */
if(!isonlybody())
@@ -914,7 +914,7 @@ class doc extends control
if($docID)
{
$doc = $this->doc->getById($docID, $version, true);
if(!$doc) die(js::error($this->lang->notFound) . js::locate($this->createLink('doc', 'index')));
if(!$doc) die(js::error($this->lang->notFound));
if($doc->keywords)
{