declare retrieve function static
authorsystopia <endres@systopia.de>
Wed, 19 Aug 2015 10:40:56 +0000 (12:40 +0200)
committersystopia <endres@systopia.de>
Wed, 19 Aug 2015 10:40:56 +0000 (12:40 +0200)
CRM/Campaign/BAO/Campaign.php

index 44136bdfbd460af1438ca7b8c071f68bfe8b3b8d..20932af7f242bed8a464b4520a6b71b88745a1d0 100644 (file)
@@ -145,7 +145,7 @@ class CRM_Campaign_BAO_Campaign extends CRM_Campaign_DAO_Campaign {
    *
    * @return \CRM_Campaign_DAO_Campaign|null
    */
-  public function retrieve(&$params, &$defaults) {
+  public static function retrieve(&$params, &$defaults) {
     $campaign = new CRM_Campaign_DAO_Campaign();
 
     $campaign->copyValues($params);