Commit 45db7b43 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Remember to closeCuror() before we start doing embedded queries, some...

* Remember to closeCuror() before we start doing embedded queries, some versions of PHP don't like this
- Thanks Eugene Krapivin

parent fbe726cc
......@@ -97,6 +97,7 @@ if ($_POST['frmaction'] == "change") {
<option value="<?php echo $row2->id ?>" ><?php echo $row2->name ?></option>
<?php
}
$res->closeCursor();
?>
</select>
</td>
......
......@@ -223,6 +223,7 @@ if ($_POST['frmaction'] == "change") {
$res = $stmt->execute(array($_POST['amavis_id']));
$row = $stmt->fetchObject();
$stmt->closeCursor();
?>
<table class="entry" style="width: 75%;">
<tr>
......
......@@ -79,6 +79,8 @@ if ($_POST['frmaction'] == "change") {
$res = $stmt->execute(array($_POST['checkhelo_id']));
$row = $stmt->fetchObject();
$stmt->closeCursor();
?>
<table class="entry" style="width: 75%;">
<tr>
......
......@@ -68,6 +68,7 @@ if ($_POST['frmaction'] == "change") {
$res = $stmt->execute(array($_POST['whitelist_id']));
$row = $stmt->fetchObject();
$stmt->closeCursor();
?>
<table class="entry" style="width: 75%;">
<tr>
......
......@@ -71,6 +71,8 @@ if ($_POST['frmaction'] == "change") {
$res = $stmt->execute(array($_POST['checkspf_id']));
$row = $stmt->fetchObject();
$stmt->closeCursor();
?>
<table class="entry" style="width: 75%;">
<tr>
......@@ -96,6 +98,7 @@ if ($_POST['frmaction'] == "change") {
<option value="<?php echo $row2->id ?>" ><?php echo $row2->name ?></option>
<?php
}
$res->closeCursor();
?>
</select>
</td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment