diff --git a/include/class.ticket.php b/include/class.ticket.php index 82cc169a59eb019fe6c2d87a61f1052561f66586..4f65488465373964a7d99bebf205cc45035a36d9 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -290,15 +290,16 @@ class Ticket { function getPriorityId() { global $cfg; - if ($a = $this->_answers['priority']->getValue()) - return $a->getId(); + if (($a = $this->_answers['priority']) + && ($b = $a->getValue())) + return $b->getId(); return $cfg->getDefaultPriorityId(); } function getPriority() { - if ($a = $this->_answers['priority']->getValue()) - return $a->getDesc(); - return '...ummm...'; + if (($a = $this->_answers['priority']) && ($b = $a->getValue())) + return $b->getDesc(); + return ''; } function getPhone() {