]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
continue if sessionid not given origin/feature_simrnov_2025_01_24_provider_fall_domru
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 24 Jan 2025 13:29:52 +0000 (16:29 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 24 Jan 2025 13:29:52 +0000 (16:29 +0300)
erp24/api1/views/cron/domru-cams.php

index 7e7280c4a074b060fcb2a8b0441ca38a04963768..e28ba8ac3b3eb93e57f84977a27945a3d9252846 100644 (file)
@@ -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
     );