diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-07 13:33:33 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-07 13:33:33 +0000 |
| commit | 3cddf052ba2f74c6bdf964b5502334516c5a6efd (patch) | |
| tree | 685cce8a57f3baaa37dad4bc9163237c77f46b3f /Pigeonholes.php | |
| parent | f62fff5822682d82d1207624fc5e9e6e43aff4de (diff) | |
| download | pigeonholes-3cddf052ba2f74c6bdf964b5502334516c5a6efd.tar.gz pigeonholes-3cddf052ba2f74c6bdf964b5502334516c5a6efd.tar.bz2 pigeonholes-3cddf052ba2f74c6bdf964b5502334516c5a6efd.zip | |
add permissioning to categories - permissions are checked recursively - w00t\!
Diffstat (limited to 'Pigeonholes.php')
| -rw-r--r-- | Pigeonholes.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php index 36136ad..628ed2a 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.38 2006/02/04 17:47:24 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.39 2006/02/07 13:33:33 squareing Exp $ * * +----------------------------------------------------------------------+ * | Copyright ( c ) 2004, bitweaver.org @@ -17,7 +17,7 @@ * Pigeonholes class * * @author xing <xing@synapse.plus.com> - * @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'] ) ) { |
