Skip to content

Commit 1e077c9

Browse files
author
sasou2008
committed
update demo;
1 parent 0221a8d commit 1e077c9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

demo/application/Controllers/Index.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ public function doc($params)
3333
$this->view->js = ['mdediter/md.min'];
3434
$this->view->help = \Services\Doc\Mark::getInstance()->listAll(1);
3535
$this->view->doc = \Services\Doc\Mark::getInstance()->listAll(2);
36-
$this->view->mark = \Services\Doc\Mark::getInstance()->row($id);
37-
$this->view->text = $parsedown->text($this->view->mark['app_description']);
36+
$mark = \Services\Doc\Mark::getInstance()->row($id);
37+
if ($mark) {
38+
$this->view->mark = $mark;
39+
$this->view->text = $parsedown->text($this->view->mark['app_description']);
40+
}
3841
$this->view->display('index/doc', 'common');
3942
}
4043

0 commit comments

Comments
 (0)