diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-04-13 13:20:20 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-13 13:20:20 +0200 |
commit | 8a43bead742f94e801976531d0225edbd57389e0 (patch) | |
tree | 3c359057f3a11f852f06d1b70234ebe94da3f5d2 /view/tpl | |
parent | 2867cd20436c09e7c603b950ed4d43d3445b8d7c (diff) | |
download | volse-hubzilla-8a43bead742f94e801976531d0225edbd57389e0.tar.gz volse-hubzilla-8a43bead742f94e801976531d0225edbd57389e0.tar.bz2 volse-hubzilla-8a43bead742f94e801976531d0225edbd57389e0.zip |
fix illegal string offset warning
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/conv_item.tpl | 2 | ||||
-rwxr-xr-x | view/tpl/conv_list.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index cfafa5ffd..a1d287f26 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -185,7 +185,7 @@ {{if $item.responses || $item.attachments}} <div class="wall-item-tools-left btn-group" id="wall-item-tools-left-{{$item.id}}"> - {{if $item.star.isstarred}} + {{if $item.star && $item.star.isstarred}} <div class="btn-group" id="star-button-{{$item.id}}"> <button type="button" class="btn btn-outline-secondary btn-sm wall-item-like" onclick="dostar({{$item.id}});"><i class="fa fa-star"></i></button> </div> diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index 286bdc54f..c42751057 100755 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -177,7 +177,7 @@ </div> <div id="like-rotator-{{$item.id}}" class="like-rotator"></div> <div class="wall-item-tools-left btn-group" id="wall-item-tools-left-{{$item.id}}"> - {{if $item.star.isstarred}} + {{if $item.star && $item.star.isstarred}} <div class="btn-group" id="star-button-{{$item.id}}"> <button type="button" class="btn btn-outline-secondary btn-sm wall-item-like" onclick="dostar({{$item.id}});"><i class="fa fa-star"></i></button> </div> |