jdarwood007

jdarwood007 commited on 2019-03-09 07:05:18
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -714,7 +714,7 @@ function shd_count_helpdesk_tickets($status = '', $is_staff = false)
714 714
 		case 'withdeleted':
715 715
 			return $context['ticket_count']['withdeleted'];
716 716
 		case 'hold':
717
-			return $context['ticket_count'][TICKET_STATUS_HOLD];
717
+			return !empty($context['ticket_count'][TICKET_STATUS_HOLD]) ? $context['ticket_count'][TICKET_STATUS_HOLD] : 0;
718 718
 		default:
719 719
 			return array_sum($context['ticket_count']) - $context['ticket_count']['withdeleted']; // since withdeleted is the only duplicate information, all the rest is naturally self-exclusive
720 720
 	}
721 721