From f76623a25e4f75d02be64e45ed2ee1b01668ded8 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 22 Jul 2026 18:20:33 +0300 Subject: [PATCH] Update: 2026-07-22 18:20:33 --- backend/ride/location/get.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/ride/location/get.php b/backend/ride/location/get.php index 41f9772f..a9ae72ba 100644 --- a/backend/ride/location/get.php +++ b/backend/ride/location/get.php @@ -135,9 +135,12 @@ try { foreach ($fieldsToDecrypt as $field) { if (isset($row[$field]) && $row[$field] !== null && $row[$field] !== '') { try { - $row[$field] = $encryptionHelper->decryptData($row[$field]); - } catch (Exception $e) { - $row[$field] = null; + $decrypted = $encryptionHelper->decryptData($row[$field]); + if ($decrypted !== false && $decrypted !== null) { + $row[$field] = $decrypted; + } + } catch (Throwable $e) { + // Keep original value if decryption fails } } }