From af32ae1d3f9b0eae96fdcb0cde132ea9d023b32a Mon Sep 17 00:00:00 2001 From: spezialist1 Date: Fri, 16 Sep 2022 16:36:02 +0300 Subject: [PATCH] The left-associativity of the ternary operator has been deprecated in PHP 7.4. Multiple consecutive ternaries detected. Use parenthesis to clarify the order in which the operations should be executed! FILE: devices.php ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2497 | WARNING | The left-associativity of the ternary operator has been deprecated in PHP 7.4. Multiple consecutive ternaries detected. Use parenthesis to clarify the order in which the | | operations should be executed 2546 | WARNING | The left-associativity of the ternary operator has been deprecated in PHP 7.4. Multiple consecutive ternaries detected. Use parenthesis to clarify the order in which the | | operations should be executed ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --- devices.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices.php b/devices.php index 7d0f37f80..2d574180f 100644 --- a/devices.php +++ b/devices.php @@ -2494,7 +2494,7 @@ function setPreferredLayout() {Rights=="Write")?true:($tmpDev->Rights=="Write")?true:false; + $jsondata[$i]=($dev->Rights=="Write")?true:(($tmpDev->Rights=="Write")?true:false); $cp=new DevicePorts(); if($port->ConnectedDeviceID>0 && !is_null($port->ConnectedDeviceID)){ @@ -2543,7 +2543,7 @@ function setPreferredLayout() {Rights=="Write")?true:($frontDev->Rights=="Write")?true:false; + $jsondata[$i]=($dev->Rights=="Write")?true:(($frontDev->Rights=="Write")?true:false); $fp=""; //front port Label $cPort=new DevicePorts();