From b0a3ed685da8af3a9bfcc28e488b21a547e8b0e0 Mon Sep 17 00:00:00 2001 From: Waldo Jaquith Date: Wed, 21 Feb 2024 21:58:44 -0500 Subject: [PATCH] Make sure we have bill numbers --- cron/summarize_fis.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cron/summarize_fis.php b/cron/summarize_fis.php index ffc80b0..bf408b1 100644 --- a/cron/summarize_fis.php +++ b/cron/summarize_fis.php @@ -26,6 +26,10 @@ } foreach ($bills as $bill) { + // Sometimes we're not getting bill numbers, unclear why + if (!isset($bill['number']) || empty($bill['number'])) { + continue; + } // Assemble the URL $url = 'https://lis.virginia.gov/cgi-bin/legp604.exe?' . SESSION_LIS_ID . '+oth+'