mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Code Inspection: Ternary expression can be replaced with condition (#728)
This commit is contained in:
parent
4e40a4bcd4
commit
de076c80ef
13 changed files with 29 additions and 29 deletions
|
@ -59,8 +59,8 @@ if (isset($_GET['pane']) && $_GET['pane'] == 'left') {
|
|||
} elseif (isset($_GET['pane']) && $_GET['pane'] == 'right') {
|
||||
$template->assign_vars(array(
|
||||
'TPL_ADMIN_MAIN' => true,
|
||||
'ADMIN_LOCK' => $bb_cfg['board_disable'] ? true : false,
|
||||
'ADMIN_LOCK_CRON' => file_exists(BB_DISABLED) ? true : false,
|
||||
'ADMIN_LOCK' => (bool)$bb_cfg['board_disable'],
|
||||
'ADMIN_LOCK_CRON' => file_exists(BB_DISABLED),
|
||||
));
|
||||
|
||||
// Get forum statistics
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue