From 4527e9bfb0eb444ce812657fa60bc292e3487a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dzieko=C5=84ski?= Date: Tue, 31 May 2022 00:39:12 +0200 Subject: [PATCH] GH-139 Pretty input box cleanup --- fleet2.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/fleet2.php b/fleet2.php index 61f648ad..987fed89 100644 --- a/fleet2.php +++ b/fleet2.php @@ -380,14 +380,11 @@ } $_Lang['SetSpeed'] = $_POST['speed']; -if($_User['settings_useprettyinputbox'] == 1) -{ - $_Lang['P_AllowPrettyInputBox'] = 'true'; -} -else -{ - $_Lang['P_AllowPrettyInputBox'] = 'false'; -} +$_Lang['P_AllowPrettyInputBox'] = ( + ($_User['settings_useprettyinputbox'] == 1) ? + 'true' : + 'false' +); $_User['settings_resSortArray'] = explode(',', $_User['settings_resSortArray']); foreach($_User['settings_resSortArray'] as $ResSortData) {