From 916bdc36b3b3af09de36fe5efcdb03293132d0be Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 22 Mar 2014 17:24:38 -0400 Subject: [PATCH] Fix php warnings --- CRM/Case/Audit/Audit.php | 2 +- CRM/Case/XMLProcessor/Process.php | 2 +- CRM/Case/XMLProcessor/Report.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Case/Audit/Audit.php b/CRM/Case/Audit/Audit.php index 0401161aef..96790f3482 100644 --- a/CRM/Case/Audit/Audit.php +++ b/CRM/Case/Audit/Audit.php @@ -53,7 +53,7 @@ class CRM_Case_Audit_Audit { $value = $value_elements->item(0)->nodeValue; $category_elements = $field->getElementsByTagName("Category"); - if (!empty($category_elements)) { + if (!empty($category_elements->length)) { $category = $category_elements->item(0)->nodeValue; } diff --git a/CRM/Case/XMLProcessor/Process.php b/CRM/Case/XMLProcessor/Process.php index 297447699c..65b52939bb 100644 --- a/CRM/Case/XMLProcessor/Process.php +++ b/CRM/Case/XMLProcessor/Process.php @@ -454,7 +454,7 @@ AND a.is_deleted = 0 return TRUE; } - function activitySets($activitySetsXML) { + static function activitySets($activitySetsXML) { $result = array(); foreach ($activitySetsXML as $activitySetXML) { foreach ($activitySetXML as $recordXML) { diff --git a/CRM/Case/XMLProcessor/Report.php b/CRM/Case/XMLProcessor/Report.php index bc8d94b90d..0387f50023 100644 --- a/CRM/Case/XMLProcessor/Report.php +++ b/CRM/Case/XMLProcessor/Report.php @@ -659,7 +659,7 @@ LIMIT 1 return $string; } - function getCaseReport($clientID, $caseID, $activitySetName, $params, $form) { + static function getCaseReport($clientID, $caseID, $activitySetName, $params, $form) { $template = CRM_Core_Smarty::singleton(); @@ -721,7 +721,7 @@ LIMIT 1 return $contents; } - function printCaseReport() { + static function printCaseReport() { $caseID = CRM_Utils_Request::retrieve('caseID', 'Positive', CRM_Core_DAO::$_nullObject); $clientID = CRM_Utils_Request::retrieve('cid', 'Positive', CRM_Core_DAO::$_nullObject); $activitySetName = CRM_Utils_Request::retrieve('asn', 'String', CRM_Core_DAO::$_nullObject); -- 2.25.1