summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-09-12 16:40:32 +0100
committerlsces <lester@lsces.co.uk>2025-09-12 16:40:32 +0100
commitcb01c597657dfc7a32fd575930a9ff9a6c007555 (patch)
treeb8ebca8b5856671cab40679c5ff270afbf4c21d0 /includes
parent6354daa965bae825ac3007be6dcdc518ed212428 (diff)
downloadprotector-cb01c597657dfc7a32fd575930a9ff9a6c007555.tar.gz
protector-cb01c597657dfc7a32fd575930a9ff9a6c007555.tar.bz2
protector-cb01c597657dfc7a32fd575930a9ff9a6c007555.zip
PHP8.4 style fixes to make role selection work
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/classes/LibertyProtector.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/classes/LibertyProtector.php b/includes/classes/LibertyProtector.php
index 6fbb685..cd5fccf 100755
--- a/includes/classes/LibertyProtector.php
+++ b/includes/classes/LibertyProtector.php
@@ -22,7 +22,7 @@ class LibertyProtector extends LibertyBase {
/**
* During initialisation, be sure to call our base constructors
**/
- function __construct( $pContentId=0 ) {
+ public function __construct( $pContentId=0 ) {
$this->mContentId = $pContentId ;
parent::__construct();
}
@@ -34,7 +34,7 @@ class LibertyProtector extends LibertyBase {
*
* @param object $pParamHash
*/
- function storeProtection( &$pParamHash ) {
+ public function storeProtection( &$pParamHash ) {
global $gBitSystem;
if( \Bitweaver\BitBase::verifyId( $pParamHash['protector']['role_id'] ?? 0 ) ) {
$this->mDb->query( "DELETE FROM `".BIT_DB_PREFIX."liberty_content_role_map` WHERE `content_id`=?", [ $pParamHash['content_id'] ] );