notice fix
authoryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 10 Aug 2015 06:15:27 +0000 (11:45 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 10 Aug 2015 06:15:27 +0000 (11:45 +0530)
CRM/Core/Form/Search.php

index 466844bbc768ba909389ae851ade2ee67f3d66fa..2c1408411be46bd9dd725ee9e68f71bac7e69c77 100644 (file)
@@ -122,7 +122,9 @@ class CRM_Core_Form_Search extends CRM_Core_Form {
     $this->addElement('checkbox', 'toggleSelect', NULL, NULL, array('class' => 'select-rows'));
     if (!empty($rows)) {
       foreach ($rows as $row) {
-        $this->addElement('checkbox', $row['checkbox'], NULL, NULL, array('class' => 'select-row'));
+        if (CRM_Utils_Array::value('checkbox', $row)) {
+          $this->addElement('checkbox', $row['checkbox'], NULL, NULL, array('class' => 'select-row'));
+        }
       }
     }
   }