CRM-13793 cleanup of assignment in condition
authorJoe Murray <joe.murray@jmaconsulting.biz>
Tue, 19 Nov 2013 16:16:47 +0000 (11:16 -0500)
committerJoe Murray <joe.murray@jmaconsulting.biz>
Tue, 19 Nov 2013 16:16:47 +0000 (11:16 -0500)
CRM/Case/Page/AJAX.php

index 860566625c395e89a4268682690cf51a322c2b69..c801ac908e123597c3cabaa9b26810b6bb814752 100644 (file)
@@ -44,7 +44,8 @@ class CRM_Case_Page_AJAX {
     $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');
     }