From 438e52a03527cc381477f4c0a633bd6e45cf404a Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Tue, 11 Feb 2014 19:21:19 +0100 Subject: [PATCH] Add type conversion to constants, because IDE cannot know for sure they are integer. This might be controversial. --- CRM/Contribute/Page/ContributionPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contribute/Page/ContributionPage.php b/CRM/Contribute/Page/ContributionPage.php index 628d37f986..64452f5332 100644 --- a/CRM/Contribute/Page/ContributionPage.php +++ b/CRM/Contribute/Page/ContributionPage.php @@ -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. -- 2.25.1