diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
| commit | 513bc9e03522f0bfc0e307a8e40a517e746de2bc (patch) | |
| tree | bed44d24c1ef1ee8d3801b74fe0fac68e1f779f4 /watches.php | |
| parent | 70ebf6a972f511a904a7775ec792dc2523bf3e13 (diff) | |
| download | users-513bc9e03522f0bfc0e307a8e40a517e746de2bc.tar.gz users-513bc9e03522f0bfc0e307a8e40a517e746de2bc.tar.bz2 users-513bc9e03522f0bfc0e307a8e40a517e746de2bc.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'watches.php')
| -rwxr-xr-x | watches.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/watches.php b/watches.php index 1a622ae..8b28432 100755 --- a/watches.php +++ b/watches.php @@ -17,18 +17,18 @@ use Bitweaver\KernelTools; $user = $gBitUser->mUserId; if (!$user) { $gBitSmarty->assign('msg', KernelTools::tra( "You must log in to use this feature" )); - $gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'display' )); + $gBitSystem->display( 'error.tpl' , null, [ 'display_mode' => 'display' ]); die; } $gBitSystem->verifyFeature( 'users_watches' ); if (isset($_REQUEST['hash'])) { - + $gBitUser->remove_user_watch_by_hash($_REQUEST['hash']); } if (isset($_REQUEST['watch'])) { - + foreach (array_keys($_REQUEST["watch"])as $item) { $gBitUser->remove_user_watch_by_hash($item); } @@ -43,5 +43,5 @@ if (!isset($_REQUEST['event'])) $watches = $gBitUser->getWatches( $_REQUEST['event'] ); $gBitSmarty->assign('watches', $watches); -$gBitSystem->display( 'bitpackage:users/user_watches.tpl', null, array( 'display_mode' => 'display' )); +$gBitSystem->display( 'bitpackage:users/user_watches.tpl', null, [ 'display_mode' => 'display' ]); ?> |
