From 4d272f2808f49037fd6cf5b7075970f2bd9b5755 Mon Sep 17 00:00:00 2001 From: "Lester Caine ext:(%22)" Date: Sun, 15 Apr 2012 23:11:00 +0100 Subject: Tidy up to remove 'STRICT' warnings --- search_lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search_lib.php b/search_lib.php index a9966ed..c0d2b27 100644 --- a/search_lib.php +++ b/search_lib.php @@ -309,11 +309,11 @@ class SearchLib extends BitBase { } } - function has_permission($pContentType = NULL) { + public static function has_permission($pContentType = NULL) { global $gBitUser, $gLibertySystem; if ( ! empty( $pContentType ) ) { - $object = $gLibertySystem->getLibertyObject(1, $pContentType, FALSE); + $object = LibertyBase::getLibertyObject(1, $pContentType, FALSE); if ( ! empty( $object ) ) { // Note that we can't do verify access here because // we are using a generic object but we can at least get a -- cgit v1.3