aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xview/tpl/conv_item.tpl2
-rwxr-xr-xview/tpl/conv_list.tpl2
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>