Skip to content

Commit

Permalink
Fix invalid number of arguments as we were calling the wrong db function
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit authored Feb 24, 2025
1 parent 1e7cbdd commit 5f95d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api_automation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']));
Expand Down

0 comments on commit 5f95d66

Please sign in to comment.