diff --git a/public_html/lib/runErpOutbox.php b/public_html/lib/runErpOutbox.php index 91dbc98..02f2370 100644 --- a/public_html/lib/runErpOutbox.php +++ b/public_html/lib/runErpOutbox.php @@ -20,7 +20,7 @@ $mode = (PHP_SAPI === 'cli') ? "SHELL" : "WEB"; if ($mode == "SHELL") { $GETDIR = dirname(__DIR__); $ENT = "\n"; - + putenv("DOCUMENT_ROOT=" . $GETDIR); } else { $GETDIR = getenv("DOCUMENT_ROOT"); $ENT = "
"; @@ -68,8 +68,6 @@ while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { $eo_id = $row['eo_id']; - echo "[$entity:$eo_id] [$method:$url] - "; - /////////////////////////////////////////////////// // LOCK /////////////////////////////////////////////////// @@ -130,7 +128,7 @@ while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { "; $jdb->nQuery($qry_skip, "skip update error"); - continue; + continue 2; } // PATCH @@ -153,6 +151,8 @@ while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { ); } + echo "[$entity:$eo_id] [$method:$url] - "; + /////////////////////////////////////////////////// // SAVE REQUEST JSON ///////////////////////////////////////////////////