Fixes for bug 6703, by Robert Treat.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 16 Jul 2006 15:21:34 +0000 (15:21 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 16 Jul 2006 15:21:34 +0000 (15:21 +0000)
includes/DatabasePostgres.php

index ad2ecb8..f9c1def 100644 (file)
@@ -182,10 +182,9 @@ class DatabasePostgres extends Database {
                        ## Do we have plpgsql installed?
                        print "<li>Checking for plpgsql ...";
                        $SQL = "SELECT 1 FROM pg_catalog.pg_language WHERE lanname = 'plpgsql'";
-                       $res = $this->doQuery($SQL);
                        $rows = $this->numRows($this->doQuery($SQL));
                        if ($rows < 1) {
-                               print "<b>FAILED</b>. Make sure the language plpgsql is installed for the database <tt>$wgDBname</tt>t</li>";
+                               print "<b>FAILED</b>. Make sure the language plpgsql is installed for the database <tt>$wgDBname</tt></li>";
                                dieout("</ul>");
                        }
                        print "OK</li>\n";