summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-15 23:11:00 +0100
committerLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-15 23:11:00 +0100
commit4d272f2808f49037fd6cf5b7075970f2bd9b5755 (patch)
tree4f47358025d581d51b4776c6f7c3cfa42b509352
parent313a593652a755f7d6ebe3ce22607f3edbfc4432 (diff)
downloadsearch-4d272f2808f49037fd6cf5b7075970f2bd9b5755.tar.gz
search-4d272f2808f49037fd6cf5b7075970f2bd9b5755.tar.bz2
search-4d272f2808f49037fd6cf5b7075970f2bd9b5755.zip
Tidy up to remove 'STRICT' warnings
-rw-r--r--search_lib.php4
1 files 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