diff options
| author | Lester Caine <lester@lsces.co.uk> | 2005-12-18 15:17:14 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2005-12-18 15:17:14 +0000 |
| commit | 6af09347a965915b7649411b0ee65e4aa9de0d61 (patch) | |
| tree | 8055074bf5116efec3aefc44f054afe678bfcb56 /admin | |
| parent | 48a8f42b0adecfa341c12393a7f701110d0a2249 (diff) | |
| download | calendar-6af09347a965915b7649411b0ee65e4aa9de0d61.tar.gz calendar-6af09347a965915b7649411b0ee65e4aa9de0d61.tar.bz2 calendar-6af09347a965915b7649411b0ee65e4aa9de0d61.zip | |
Handle checkbox return properly
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/admin_calendar_inc.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/admin/admin_calendar_inc.php b/admin/admin_calendar_inc.php index 4ab9d3f..9498d87 100644 --- a/admin/admin_calendar_inc.php +++ b/admin/admin_calendar_inc.php @@ -25,8 +25,12 @@ $calendarValues = array( // this function only exists if it's been included by the index.php page. if // it's been included from anywhere else, we don't execute this section if( function_exists( 'simple_set_value' ) && $gBitUser->isAdmin() && !empty( $_REQUEST['calendar_submit'] ) ) { +vd($_REQUEST); foreach( $calendarValues as $item ) { - simple_set_value( $item, CALENDAR_PKG_NAME ); + if ( $item != 'user_prefs' ) + simple_set_value( $item, CALENDAR_PKG_NAME ); + else + simple_set_toggle( $item, CALENDAR_PKG_NAME ); } } ?> |
