We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e621308 commit 5a1a2b0Copy full SHA for 5a1a2b0
1 file changed
Entity/Traits/TicketMessageTrait.php
@@ -96,7 +96,7 @@ public function getStatus()
96
*/
97
public function getStatusString()
98
{
99
- if (in_array($this->status, TicketMessageInterface::STATUSES)) {
+ if (!empty(TicketMessageInterface::STATUSES[$this->status])) {
100
return TicketMessageInterface::STATUSES[$this->status];
101
}
102
@@ -152,7 +152,7 @@ public function getPriority()
152
153
public function getPriorityString()
154
155
- if (in_array($this->priority, TicketMessageInterface::PRIORITIES)) {
+ if (!empty(TicketMessageInterface::PRIORITIES[$this->priority])) {
156
return TicketMessageInterface::PRIORITIES[$this->priority];
157
158
0 commit comments