Diff of /trunk/adminer/drivers/sqlite.inc.php [r1517] .. [r1518] Maximize Restore

  Switch to side-by-side view

--- a/trunk/adminer/drivers/sqlite.inc.php
+++ b/trunk/adminer/drivers/sqlite.inc.php
@@ -393,7 +393,9 @@
 		global $connection;
 		$alter = array();
 		foreach ($fields as $field) {
-			$alter[] = ($table != "" && $field[0] == "" ? "ADD " : "  ") . implode("", $field[1]);
+			if ($field[1]) {
+				$alter[] = ($table != "" && $field[0] == "" ? "ADD " : "  ") . implode("", $field[1]);
+			}
 		}
 		$alter = array_merge($alter, $foreign);
 		if ($table != "") {