Commit f04f5943 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 2db8e0fb
......@@ -98,6 +98,7 @@ if ($_POST['frmaction'] == "change") {
<option value="<?php echo $row2->id ?>" ><?php echo $row2->name ?></option>
<?php
}
$res->closeCursor();
?>
</select>
</td>
......
......@@ -102,6 +102,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>
......
......@@ -73,6 +73,8 @@ if ($_POST['frmaction'] == "change") {
$res = $stmt->execute(array($_POST['checkspf_id']));
$row = $stmt->fetchObject();
$stmt->closeCursor();
?>
<table class="entry" style="width: 75%;">
<tr>
......@@ -98,6 +100,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