|
From: Jon O. <jon...@us...> - 2006-08-16 20:00:38
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv26281 Modified Files: index.php Log Message: A couple of PHP warnings solved Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/index.php,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** index.php 16 Aug 2006 14:47:50 -0000 1.58 --- index.php 16 Aug 2006 20:00:33 -0000 1.59 *************** *** 118,121 **** --- 118,122 ---- // Toggle mode: default, dynamic, sub // + unset($mx_dynamic_block); if ( $mx_block->is_dynamic ) { *************** *** 132,135 **** --- 133,137 ---- } + unset($mx_parent_block); if ( $mx_block->is_sub ) { *************** *** 224,228 **** // Output editcp controls/buttons // ! if ( is_object($mx_dynamic_block) && $subblock == $total_subs - 1 ) { if ($mx_dynamic_block->dynamic_block_id > 0 && $mx_dynamic_block->auth_edit) --- 226,230 ---- // Output editcp controls/buttons // ! if ( isset($mx_dynamic_block) && $subblock == $total_subs - 1 ) { if ($mx_dynamic_block->dynamic_block_id > 0 && $mx_dynamic_block->auth_edit) *************** *** 232,236 **** } ! if ( is_object($mx_parent_block) && $subblock == $total_subs - 1 && $mx_parent_block->auth_edit ) { $mx_parent_block->output_cp_button(); --- 234,238 ---- } ! if ( isset($mx_parent_block) && $subblock == $total_subs - 1 && $mx_parent_block->auth_edit ) { $mx_parent_block->output_cp_button(); *************** *** 267,271 **** // Output some subblock wrappers // ! if (is_object($mx_parent_block)) { if ( $mx_parent_block->is_sub ) --- 269,273 ---- // Output some subblock wrappers // ! if (isset($mx_parent_block)) { if ( $mx_parent_block->is_sub ) *************** *** 299,308 **** // Destroy parent block data // ! if ( is_object($mx_parent_block) && $mx_parent_block->is_sub ) { unset( $mx_parent_block ); } ! if ( is_object($mx_dynamic_block) ) { unset( $mx_dynamic_block ); --- 301,310 ---- // Destroy parent block data // ! if ( isset($mx_parent_block) && $mx_parent_block->is_sub ) { unset( $mx_parent_block ); } ! if ( isset($mx_dynamic_block) ) { unset( $mx_dynamic_block ); |