Cleanup is_array(CRM_Utils_Array::value()) pattern
[civicrm-core.git] / CRM / Custom / Page / Group.php
index 8fff89132cfd3cfc0988f0e0fd716b33f9444f05..d8a931e63dce2d7b5014ac9a35015df1b9e62ff7 100644 (file)
@@ -303,7 +303,7 @@ class CRM_Custom_Page_Group extends CRM_Core_Page {
         $customGroup[$key]["extends_entity_column_value"] = $colValue;
       }
       else {
-        if (is_array(CRM_Utils_Array::value($type, $subTypes))) {
+        if (isset($subTypes[$type]) && is_array($subTypes[$type])) {
           $customGroup[$key]["extends_entity_column_value"] = ts("Any");
         }
       }