Skip to content

Commit 5a1a2b0

Browse files
committed
correct check for priority and status value in array
1 parent e621308 commit 5a1a2b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Entity/Traits/TicketMessageTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getStatus()
9696
*/
9797
public function getStatusString()
9898
{
99-
if (in_array($this->status, TicketMessageInterface::STATUSES)) {
99+
if (!empty(TicketMessageInterface::STATUSES[$this->status])) {
100100
return TicketMessageInterface::STATUSES[$this->status];
101101
}
102102

@@ -152,7 +152,7 @@ public function getPriority()
152152
*/
153153
public function getPriorityString()
154154
{
155-
if (in_array($this->priority, TicketMessageInterface::PRIORITIES)) {
155+
if (!empty(TicketMessageInterface::PRIORITIES[$this->priority])) {
156156
return TicketMessageInterface::PRIORITIES[$this->priority];
157157
}
158158

0 commit comments

Comments
 (0)