safe_json_encode($validConditions)), 'alert_tests', '`alert_test_id` = ?', array($entry['alert_test_id'])); echo('.'); } else { // Handle the case where $conditions is not an array (e.g., null or false) // Depending on your application logic, you might want to log this or take other actions print_debug("Invalid JSON in alert_tests for alert_test_id: " . $entry['alert_test_id']); echo('E'); } } // EOF