Unset the prepared statements used in the app_defaults.php files.

This commit is contained in:
Mark Crane
2014-07-23 22:00:03 +00:00
parent 411e0d7733
commit 5e0d82c06d
12 changed files with 54 additions and 35 deletions

View File

@@ -49,6 +49,7 @@ if ($domains_processed == 1) {
$db->exec(check_sql($sql));
unset($sql);
}
unset($prep_statement, $result);
//replace the backslash with a forward slash
$db_path = str_replace("\\", "/", $db_path);
@@ -62,6 +63,7 @@ if ($domains_processed == 1) {
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
unset($prep_statement);
if ($row['num_rows'] > 0) {
$odbc_num_rows = $row['num_rows'];
@@ -95,6 +97,7 @@ if ($domains_processed == 1) {
foreach ($result as &$row) {
$recordings_dir = $row["default_setting_value"];
}
unset($prep_statement, $result);
}
//config.lua