fix last commit
authorIan Kelling <iank@fsf.org>
Thu, 30 Jan 2020 23:30:00 +0000 (18:30 -0500)
committerIan Kelling <iank@fsf.org>
Thu, 30 Jan 2020 23:30:00 +0000 (18:30 -0500)
CRM/Memberdashboard/Page/Benefits.php

index 0b69c86f798e27122e49be8b6a46ba16187a738a..8dead574ce98fec4fa61498d6ed55cca7c274572 100644 (file)
@@ -37,7 +37,7 @@ class CRM_Memberdashboard_Page_Benefits extends CRM_Memberdashboard_Page {
     );
 
     try {
-      $result = ('membership', 'get', $params);
+      $result = civicrm_api3('membership', 'get', $params);
       return $result['count'] > 0;
     } catch (CiviCRM_API3_Exception $e) {
       return false;