diff --git a/include/spool_post.php b/include/spool_post.php index d55b100ed..78384c23a 100644 --- a/include/spool_post.php +++ b/include/spool_post.php @@ -35,7 +35,13 @@ function spool_post_run($argv, $argc) { continue; } $arr = json_decode(file_get_contents($fullfile), true); + if (!is_array($arr)) { + continue; + } $result = item_store($arr); + if ($result == 0) { + continue; + } logger("Spool file ".$file." stored: ".$result, LOGGER_DEBUG); unlink($fullfile); }