Skip to content

Commit 907391e

Browse files
fix: restore corrupted is_array($_SESSION['import_debug_info']) calls
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
1 parent 8ced88d commit 907391e

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

setup.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ function thold_device_action_prepare($save) {
732732
return $save;
733733
}
734734

735-
function thold_device_action_[$device_action_array] {
735+
function thold_device_action_array($device_action_array) {
736736
$device_action_array['thold'] = 'Apply Thresholds';
737737

738738
return $device_action_array;
@@ -1019,7 +1019,7 @@ function thold_data_source_action_prepare($save) {
10191019
}
10201020
}
10211021

1022-
function thold_data_source_action_[$action] {
1022+
function thold_data_source_action_array($action) {
10231023
$action['plugin_thold_create'] = __('Create Threshold from Template', 'thold');
10241024

10251025
return $action;
@@ -1183,7 +1183,7 @@ function thold_graphs_action_prepare($save) {
11831183
}
11841184
}
11851185

1186-
function thold_graphs_action_[$action] {
1186+
function thold_graphs_action_array($action) {
11871187
$action['plugin_thold_create'] = __('Create Threshold from Template', 'thold');
11881188

11891189
return $action;
@@ -1681,7 +1681,7 @@ function thold_data_source_remove($data_ids) {
16811681
return $data_ids;
16821682
}
16831683

1684-
function thold_clog_regex_[$regex_array] {
1684+
function thold_clog_regex_array($regex_array) {
16851685
$regex_array[] = ['name' => 'TH', 'regex' => '( TH\[)([, \d]+)(\])', 'func' => 'thold_clog_regex_threshold'];
16861686

16871687
return $regex_array;

thold_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4591,7 +4591,7 @@ function thold_cdef_select_usable_names() {
45914591

45924592
if (cacti_sizeof($cdefs)) {
45934593
foreach ($cdefs as $cdef) {
4594-
if (in_array($cdef['id'), $ids, true]) {
4594+
if (in_array($cdef['id'], $ids, true)) {
45954595
$cdef_names[$cdef['id']] = $cdef['name'];
45964596
}
45974597
}

thold_templates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,7 @@ function import() {
24302430

24312431
form_start('thold_templates.php', 'chk', true);
24322432

2433-
if ((isset($_SESSION['import_debug_info'])) && (is_array($_SESSION['import_debug_info')])) {
2433+
if ((isset($_SESSION['import_debug_info'])) && (is_array($_SESSION['import_debug_info']))) {
24342434
html_start_box(__('Import Results', 'thold'), '80%', false, '3', 'center', '');
24352435

24362436
print '<tr><td>' . __('Cacti has imported the following items:', 'thold') . '</td></tr>';

thold_webapi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function thold_add_graphs_action_prepare() {
177177
bottom_footer();
178178
}
179179

180-
function thold_add_graphs_action_[$action] {
180+
function thold_add_graphs_action_array($action) {
181181
$action['plugin_thold_create'] = __('Create Threshold from Template', 'thold');
182182

183183
return $action;

0 commit comments

Comments
 (0)