Add type conversion to constants, because IDE cannot know for sure they are integer...
authorAndreas Hennings <andreas@dqxtech.net>
Tue, 11 Feb 2014 18:21:19 +0000 (19:21 +0100)
committerTim Otten <totten@civicrm.org>
Sat, 3 Jan 2015 21:50:53 +0000 (13:50 -0800)
CRM/Contribute/Page/ContributionPage.php

index 628d37f9865a262e156360b089c6051fbb73a025..64452f5332b9a390cbe7e3e62a63cc0e275bf86b 100644 (file)
@@ -470,15 +470,15 @@ ORDER BY title asc
       $action += array_sum(array_keys(self::contributionLinks()));
 
       if ($dao->is_active) {
-        $action -= CRM_Core_Action::ENABLE;
+        $action -= (int)CRM_Core_Action::ENABLE;
       }
       else {
-        $action -= CRM_Core_Action::DISABLE;
+        $action -= (int)CRM_Core_Action::DISABLE;
       }
 
       //CRM-4418
       if (!$allowToDelete) {
-        $action -= CRM_Core_Action::DELETE;
+        $action -= (int)CRM_Core_Action::DELETE;
       }
 
       //build the configure links.