We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0221a8d commit 1e077c9Copy full SHA for 1e077c9
demo/application/Controllers/Index.php
@@ -33,8 +33,11 @@ public function doc($params)
33
$this->view->js = ['mdediter/md.min'];
34
$this->view->help = \Services\Doc\Mark::getInstance()->listAll(1);
35
$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']);
+ $mark = \Services\Doc\Mark::getInstance()->row($id);
+ if ($mark) {
38
+ $this->view->mark = $mark;
39
+ $this->view->text = $parsedown->text($this->view->mark['app_description']);
40
+ }
41
$this->view->display('index/doc', 'common');
42
}
43
0 commit comments