Merge "Always decode Blob objects from Database::addQuotes"
[lhc/web/wiklou.git] / includes / db / DatabasePostgres.php
index 0487b79..3d0ed86 100644 (file)
@@ -712,7 +712,7 @@ class DatabasePostgres extends DatabaseBase {
                        $row = $this->fetchRow( $res );
                        $count = array();
                        if ( preg_match( '/rows=(\d+)/', $row[0], $count ) ) {
-                               $rows = $count[1];
+                               $rows = (int)$count[1];
                        }
                }