diff options
Diffstat (limited to 'assign.php')
| -rwxr-xr-x[-rw-r--r--] | assign.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assign.php b/assign.php index 274e9bc..4741d42 100644..100755 --- a/assign.php +++ b/assign.php @@ -11,7 +11,7 @@ /** * required setup */ -require_once( '../kernel/includes/setup_inc.php' ); +require_once '../kernel/includes/setup_inc.php'; // Is package installed and enabled $gBitSystem->verifyPackage( 'boards' ); @@ -37,7 +37,7 @@ if (!empty($_REQUEST['remove'])) { } } -if( !empty( $_REQUEST['assign'] ) && @BitBase::verifyId( $_REQUEST['to_board_id'] ) ) { +if( !empty( $_REQUEST['assign'] ) && BitBase::verifyId( $_REQUEST['to_board_id'] ?? 0 ) ) { $b = new BitBoard( $_REQUEST['to_board_id'] ); $b->load(); if ( $b->verifyUpdatePermission() ){ @@ -57,7 +57,7 @@ if (!empty($_REQUEST['integrity'])) { } $data = BitBoard::getAllMap(); -$gBitSmarty->assignByRef('data',$data); +$gBitSmarty->assign('data',$data); // Display the template $gBitSystem->display( 'bitpackage:boards/board_assign.tpl', tra('Assign content to Board') , array( 'display_mode' => 'display' )); |
