Commit de733c94 authored by Klaas Eikelboom's avatar Klaas Eikelboom
Browse files

Fixed 'Non-static method should not be called statically' notice

parent df259288
......@@ -12,7 +12,7 @@ class CRM_DataprocessorSearch_Utils_PrevNextCache {
* @param int $id
* @param string $cacheKey
*/
public function deleteItem($id = NULL, $cacheKey = NULL) {
public static function deleteItem($id = NULL, $cacheKey = NULL) {
if (Civi::container()->has('prevnext')) {
return Civi::service('prevnext')->deleteItem($id, $cacheKey);
} else {
......@@ -73,7 +73,7 @@ class CRM_DataprocessorSearch_Utils_PrevNextCache {
*
* @return array|NULL
*/
public function getSelection($cacheKey, $action = 'get') {
public static function getSelection($cacheKey, $action = 'get') {
if (Civi::container()->has('prevnext')) {
return Civi::service('prevnext')->getSelection($cacheKey, $action);
} else {
......@@ -103,4 +103,4 @@ class CRM_DataprocessorSearch_Utils_PrevNextCache {
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment