From c6f57a3661eb3583eabbca27c5b7c15c4558bce9 Mon Sep 17 00:00:00 2001 From: GamerClassN7 Date: Wed, 24 Feb 2021 17:20:35 +0100 Subject: [PATCH] =?UTF-8?q?Damej=C3=ADdlo=20Value=20Fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/plugins/DameJidlo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/plugins/DameJidlo.php b/app/plugins/DameJidlo.php index a9d87bc..fdf00f9 100644 --- a/app/plugins/DameJidlo.php +++ b/app/plugins/DameJidlo.php @@ -38,7 +38,7 @@ class DameJidlo extends VirtualDeviceManager echo 'Error:' . curl_error($ch); } curl_close($ch); - + var_dump(isset(json_decode($result, true)['data']['active_orders'][0]['delivery']['time']['eta']) ? json_decode($result, true)['data']['active_orders'][0]['delivery']['time']['eta'] : 0); return (isset(json_decode($result, true)['data']['active_orders'][0]['delivery']['time']['eta']) ? json_decode($result, true)['data']['active_orders'][0]['delivery']['time']['eta'] : 0); } @@ -80,6 +80,6 @@ class DameJidlo extends VirtualDeviceManager } else if ($value <= 1) { return "less " . $value; } - return ''; + return $value; } }