Update TicketComment.php

This commit is contained in:
n1rwana 2021-12-14 21:27:14 +03:00
parent 77908948c6
commit 082ae5503f

View file

@ -116,16 +116,15 @@ class TicketComment extends RowModel
function isLikedByUser(): ?bool function isLikedByUser(): ?bool
{ {
$mark = $this->getMark(); $mark = $this->getMark();
switch ($mark) { switch ($mark) {
case 0 : case 0:
return false; return false;
break; break;
case 1 : case 1:
return true; return true;
break; break;
default : default:
return null; return NULL;
break; break;
} }
} }