Permalink
Browse files

Init with null

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1475 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 7d64e03 commit 0115315a43bc73d6cc6231a34c14527ac6948c0a jakubvrana committed Apr 22, 2010
Showing with 3 additions and 4 deletions.
  1. +2 −3 adminer/edit.inc.php
  2. +1 −1 adminer/select.inc.php
@@ -44,7 +44,7 @@
$table_name
);
-unset($row);
+$row = null;
if ($_POST["save"]) {
$row = (array) $_POST["fields"];
} elseif ($where) {
@@ -59,7 +59,7 @@
$result = $connection->query("SELECT" . limit(implode(", ", $select) . " FROM " . idf_escape($TABLE) . " WHERE $where", (isset($_GET["select"]) ? 2 : 1)));
$row = $result->fetch_assoc();
if (isset($_GET["select"]) && $result->fetch_assoc()) {
- $row = false;
+ $row = null;
}
}
}
@@ -68,7 +68,6 @@
<form action="" method="post" enctype="multipart/form-data">
<?php
if ($fields) {
- unset($create);
echo "<table cellspacing='0'>\n";
foreach ($fields as $name => $field) {
echo "<tr><th>" . $adminer->fieldName($field);
@@ -7,7 +7,7 @@
$rights = array(); // privilege => 0
$columns = array(); // selectable columns
-unset($text_length);
+$text_length = null;
foreach ($fields as $key => $field) {
$name = $adminer->fieldName($field);
if (isset($field["privileges"]["select"]) && $name != "") {

0 comments on commit 0115315

Please sign in to comment.