Browse Source

Update database-validation.php

tags/3.1.0
Mike Koch 2 years ago
parent
commit
65110bd1b4
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      install/mods-for-hesk/database-validation.php

+ 2
- 1
install/mods-for-hesk/database-validation.php View File

@@ -216,7 +216,8 @@ hesk_dbConnect();
function run_setting_check($setting_name) {
global $hesk_settings;

$all_good = run_check("SELECT 1 FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` WHERE `Key` = '{$setting_name}'");
$res = run_check("SELECT 1 FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` WHERE `Key` = '{$setting_name}'");
$all_good = hesk_dbNumRows($res) > 0;

output_result('<b>Setting Exists</b>: ' . $setting_name, $all_good);


Loading…
Cancel
Save