Merge pull request #2076 from colemanw/CRM-11864
[civicrm-core.git] / CRM / Case / Page / AJAX.php
index 860566625c395e89a4268682690cf51a322c2b69..92ce576c301868539c3c9c45ec442e99d4657020 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -43,8 +43,8 @@ class CRM_Case_Page_AJAX {
   static function unclosedCases() {
     $criteria = explode('-', CRM_Utils_Type::escape(CRM_Utils_Array::value('s', $_GET), 'String'));
 
-    $limit = NULL;
-    if ($limit = CRM_Utils_Array::value('limit', $_GET)) {
+    $limit = CRM_Utils_Array::value('limit', $_GET);
+    if ($limit) {
       $limit = CRM_Utils_Type::escape($limit, 'Integer');
     }
 
@@ -134,7 +134,7 @@ class CRM_Case_Page_AJAX {
       $caseStatuses = CRM_Case_PseudoConstant::caseStatus();
       $cs           = $caseStatuses[$dao->status_id];
       $caseDetails  = "<table><tr><td>" . ts('Case Subject') . "</td><td>{$dao->subject}</td></tr>
-                                    <tr><td>" . ts('Case Type') . "</td><td>{$caseType}</td></tr> 
+                                    <tr><td>" . ts('Case Type') . "</td><td>{$caseType}</td></tr>
                                     <tr><td>" . ts('Case Status') . "</td><td>{$cs}</td></tr>
                                     <tr><td>" . ts('Case Start Date') . "</td><td>" . CRM_Utils_Date::customFormat($dao->start_date) . "</td></tr>
                                     <tr><td>" . ts('Case End Date') . "</td><td></td></tr>" . CRM_Utils_Date::customFormat($dao->end_date) . "</table>";