More defined() that should be isset(), thanks to David Ford, david@blue-labs.org
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 16 May 2007 20:31:58 +0000 (20:31 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 16 May 2007 20:31:58 +0000 (20:31 +0000)
includes/DatabasePostgres.php
includes/SearchPostgres.php

index 7397351..8a40e66 100644 (file)
@@ -642,7 +642,7 @@ class DatabasePostgres extends Database {
                global $wgDBversion;
 
                $table = $this->tableName( $table );
-               if (! defined( $wgDBversion ) ) {
+               if (! isset( $wgDBversion ) ) {
                        $this->getServerVersion();
                        $wgDBversion = $this->numeric_version;
                }
index 3872e46..a5b741f 100644 (file)
@@ -118,7 +118,7 @@ class SearchPostgres extends SearchEngine {
        function searchQuery( $term, $fulltext, $colname ) {
                global $wgDBversion;
 
-               if ( !defined( $wgDBversion ) ) {
+               if ( !isset( $wgDBversion ) ) {
                        $this->db->getServerVersion();
                        $wgDBversion = $this->db->numeric_version;
                }