fix notices for PHP 5.4
[civicrm-core.git] / CRM / Core / DAO.php
index 2b480de37e2721af8c69b932c9688419bfa27d68..e54678e1a0fbf55c70073e1e13797c3b2050a92b 100644 (file)
@@ -1142,7 +1142,7 @@ FROM   civicrm_domain
    * Given the component id, compute the contact id
    * since its used for things like send email
    */
-  public function &getContactIDsFromComponent(&$componentIDs, $tableName) {
+  public static function &getContactIDsFromComponent(&$componentIDs, $tableName) {
     $contactIDs = array();
 
     if (empty($componentIDs)) {