Skip to content

Commit c71cda8

Browse files
authored
Update CartPageController.php (#839)
get rid of warning: [Warning] Attempt to read property "Title" on null
1 parent 5e12f63 commit c71cda8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Page/CartPageController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CartPageController extends PageController
2525
*/
2626
public function Title(): string
2727
{
28-
if ($this->getFailover()->Title) {
28+
if ($this->getFailover && $this->getFailover()->Title) {
2929
return $this->getFailover()->Title;
3030
}
3131
return _t('SilverShop\Page\CartPage.DefaultTitle', 'Shopping Cart');

0 commit comments

Comments
 (0)