Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /adminer/include/pdo.inc.php [c4a572] .. [40ad84] Maximize Restore

  Switch to side-by-side view

--- a/adminer/include/pdo.inc.php
+++ b/adminer/include/pdo.inc.php
@@ -51,7 +51,7 @@
 		
 		function next_result() {
 			$this->_result->_offset = 0;
-			return $this->_result->nextRowset();
+			return @$this->_result->nextRowset(); // @ - PDO_PgSQL doesn't support it
 		}
 		
 		function result($query, $field = 0) {
@@ -79,7 +79,7 @@
 			$row = (object) $this->getColumnMeta($this->_offset++);
 			$row->orgtable = $row->table;
 			$row->orgname = $row->name;
-			$row->charsetnr = (in_array("blob", $row->flags) ? 63 : 0);
+			$row->charsetnr = (in_array("blob", (array) $row->flags) ? 63 : 0);
 			return $row;
 		}
 	}