fix function to be static to avoid strict warnings
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 26 Mar 2014 05:29:23 +0000 (18:29 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Wed, 26 Mar 2014 05:30:50 +0000 (18:30 +1300)
CRM/Contact/Page/AJAX.php

index 8e7cd3f466fc19fbeebcdcc6a1929e854701b185..a60304a96267aca93c540883f5bc15fa7d9f21fd 100644 (file)
@@ -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);