From 5f95d66c3bdc7a83d241d588c4e6b68a504cae68 Mon Sep 17 00:00:00 2001 From: Jimmy Conner Date: Mon, 24 Feb 2025 01:07:06 -0600 Subject: [PATCH] Fix invalid number of arguments as we were calling the wrong db function --- lib/api_automation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api_automation.php b/lib/api_automation.php index 54633e4c33..4cdcc8f76f 100644 --- a/lib/api_automation.php +++ b/lib/api_automation.php @@ -5789,7 +5789,7 @@ function automation_template_import($json_data, $tree_branches = false) { foreach($data['thold_rules'] AS $rule) { $thold_name = $rule['thold_template']['name']; - $thold_template_id = db_fetch_cell('SELECT id + $thold_template_id = db_fetch_cell_prepared('SELECT id FROM thold_template WHERE hash = ?', array($rule['thold_template_id']));