Skip to content

Commit 161500b

Browse files
Fixed bugs
1 parent 642a39b commit 161500b

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CHANGELOG
22
==============
33

4+
2.1.3.1
5+
-----------------
6+
* Fixed bugs
7+
48
2.1.3
59
-----------------
610
* Fixed bugs

src/CmsSeoComponent.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,18 @@ public function bootstrap($application)
275275

276276
$application->on(Application::EVENT_AFTER_REQUEST, function ($e) {
277277
if ($this->_isTrigerEventCanUrl()) {
278-
$this->canUrl->event_after_request($e);
278+
if ($this->canUrl) {
279+
$this->canUrl->event_after_request($e);
280+
}
279281
}
280282
});
281283

282284
$application->view->on(View::EVENT_END_PAGE, function ($e) {
283285
if ($this->_isTrigerEventCanUrl()) {
284-
$this->canUrl->event_end_page($e);
286+
if ($this->canUrl) {
287+
$this->canUrl->event_end_page($e);
288+
}
289+
285290
}
286291
});
287292
}

0 commit comments

Comments
 (0)