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
+3 -1
View File
@@ -73,6 +73,7 @@ if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
$db->exec(check_sql($sql));
unset($sql);
}
unset($prep_statement, $row);
}
//ensure the login message is set, if new message exists
@@ -84,6 +85,7 @@ if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
unset($prep_statement);
if ($row['num_rows'] == 0) {
// insert message
@@ -141,8 +143,8 @@ if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
unset($sql);
}
}
unset($prep_statement, $result);
}
unset($sql, $result);
}
}