From 80d0f1f64052fbd882e1aa405bd2a3db807eadfc Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 24 Jan 2025 16:29:52 +0300 Subject: [PATCH] continue if sessionid not given --- erp24/api1/views/cron/domru-cams.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/erp24/api1/views/cron/domru-cams.php b/erp24/api1/views/cron/domru-cams.php index 7e7280c4..e28ba8ac 100644 --- a/erp24/api1/views/cron/domru-cams.php +++ b/erp24/api1/views/cron/domru-cams.php @@ -64,8 +64,11 @@ foreach (range(0,4) as $tip){ //echo " ".$json["SessionID"]." "; - $sid = $json["SessionID"]; - + $sid = $json["SessionID"] ?? null; +if ($sid == null) { + echo "TIP: $tip"; + continue; +} $array = array( 'SessionID' => $sid ); -- 2.39.5