]> git.joonet.de Git - adminer.git/commitdiff
Indent WHERE
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Sat, 27 Jun 2009 23:11:03 +0000 (23:11 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Sat, 27 Jun 2009 23:11:03 +0000 (23:11 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@763 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/select.inc.php

index 960f56d7f6ecb4cce1069fd8e0c7f107e3e2e2ee..90278fec74771bf2bb65e8a771359170dcdab4e4 100644 (file)
@@ -104,13 +104,13 @@ if ($_POST && !$error) {
                if (!$_POST["delete"] && !$set) {
                        // nothing
                } elseif ($_POST["all"]) {
-                       $result = queries($command . ($where ? " WHERE " . implode(" AND ", $where) : ""));
+                       $result = queries($command . ($where ? "\nWHERE " . implode(" AND ", $where) : ""));
                        $affected = $dbh->affected_rows;
                } else {
                        foreach ((array) $_POST["check"] as $val) {
                                parse_str($val, $check);
                                // where may not be unique so OR can't be used
-                               $result = queries($command . " WHERE " . implode(" AND ", where($check)) . " LIMIT 1");
+                               $result = queries($command . "\nWHERE " . implode(" AND ", where($check)) . " LIMIT 1");
                                if (!$result) {
                                        break;
                                }