From 2fcf5f817d542056ce8bef0f9bfb81b68d368d67 Mon Sep 17 00:00:00 2001
From: Christopher Gervais <chris@ergonlogic.com>
Date: Mon, 12 Sep 2011 14:15:37 -0400
Subject: [PATCH] Issue #1276776 by ergonlogic: Fixed warnings when no tickets existed in a given state.

---
 support.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/support.module b/support.module
index 450481f..9cd4811 100644
--- a/support.module
+++ b/support.module
@@ -2798,7 +2798,7 @@ function support_page_form(&$form_state, $client = NULL, $state = NULL) {
     '#type' => 'checkboxes',
     '#options' => isset($tickets) && (user_access('edit multiple tickets') || user_access('administer support')) ? $tickets : array(),
   );
-  if (count($tickets) && (user_access('edit multiple tickets') || user_access('administer support'))) {
+  if (isset($tickets) && count($tickets) && (user_access('edit multiple tickets') || user_access('administer support'))) {
     $form['update'] = array(
       '#title' => t('Update'),
       '#type' => 'textarea',
-- 
1.7.4.1

