From 3cddf052ba2f74c6bdf964b5502334516c5a6efd Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Tue, 7 Feb 2006 13:33:33 +0000 Subject: add permissioning to categories - permissions are checked recursively - w00t\! --- Pigeonholes.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 36136ad..628ed2a 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.38 $ + * @version $Revision: 1.39 $ * @package pigeonholes */ @@ -469,9 +469,10 @@ class Pigeonholes extends LibertyAttachable { } // store individual pigeonhole preferences - if( !empty( $pParamHash['pigeonhole_settings_store'] ) ) { - foreach( $pParamHash['pigeonhole_settings_store'] as $name => $value ) { - $this->storePreference( $name, $value ); + if( !empty( $pParamHash['pigeonhole_prefs_store'] ) ) { + foreach( $pParamHash['pigeonhole_prefs_store'] as $name => $value ) { + // make sure null is used when value is empty. this makes sure the preference is removed from the table rather than filled with empty strings + $this->storePreference( $name, ( !empty( $value ) ? $value : NULL ) ); } } @@ -553,7 +554,7 @@ class Pigeonholes extends LibertyAttachable { } // pigeonhole settings store - $pParamHash['pigeonhole_settings_store'] = !empty( $pParamHash['settings'] ) ? $pParamHash['settings'] : NULL; + $pParamHash['pigeonhole_prefs_store'] = !empty( $pParamHash['prefs'] ) ? $pParamHash['prefs'] : NULL; // structure store if( @BitBase::verifyId( $pParamHash['root_structure_id'] ) ) { -- cgit v1.3