diff options
| author | lsces <lester@lsces.co.uk> | 2025-09-12 16:40:32 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-09-12 16:40:32 +0100 |
| commit | cb01c597657dfc7a32fd575930a9ff9a6c007555 (patch) | |
| tree | b8ebca8b5856671cab40679c5ff270afbf4c21d0 /includes | |
| parent | 6354daa965bae825ac3007be6dcdc518ed212428 (diff) | |
| download | protector-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-x | includes/classes/LibertyProtector.php | 4 |
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'] ] ); |
