From: Eileen McNaughton Date: Wed, 26 Mar 2014 05:29:23 +0000 (+1300) Subject: fix function to be static to avoid strict warnings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b3a8489cc8f976e71bd9eb81aa5f8bcbbbdf3511;p=civicrm-core.git fix function to be static to avoid strict warnings --- diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index 8e7cd3f466..a60304a962 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -1135,7 +1135,7 @@ LIMIT {$offset}, {$rowCount} /** * Function to retrieve Paper Size dimensions */ - function paperSize() { + static function paperSize() { $paperSizeName = CRM_Utils_Type::escape($_REQUEST['paperSizeName'], 'String'); $paperSize = CRM_Core_BAO_PaperSize::getByName($paperSizeName);