Don't print query in edit
This commit is contained in:
parent
4183f73548
commit
dbf5eede9d
|
@ -89,7 +89,7 @@ if ($_POST["save"]) {
|
||||||
$select = array("*");
|
$select = array("*");
|
||||||
}
|
}
|
||||||
if ($select) {
|
if ($select) {
|
||||||
$result = $driver->select($TABLE, $select, array($where), $select, array(), (isset($_GET["select"]) ? 2 : 1), 0, true);
|
$result = $driver->select($TABLE, $select, array($where), $select, array(), (isset($_GET["select"]) ? 2 : 1), 0);
|
||||||
$row = $result->fetch_assoc();
|
$row = $result->fetch_assoc();
|
||||||
if (isset($_GET["select"]) && (!$row || $result->fetch_assoc())) { // $result->num_rows != 1 isn't available in all drivers
|
if (isset($_GET["select"]) && (!$row || $result->fetch_assoc())) { // $result->num_rows != 1 isn't available in all drivers
|
||||||
$row = null;
|
$row = null;
|
||||||
|
|
Loading…
Reference in a new issue