From 5b79cfb9b192514586fbd20cf7dc8305faf93a2c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 16 May 2007 20:31:58 +0000 Subject: [PATCH] More defined() that should be isset(), thanks to David Ford, david@blue-labs.org --- includes/DatabasePostgres.php | 2 +- includes/SearchPostgres.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 7397351acc..8a40e66acc 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -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; } diff --git a/includes/SearchPostgres.php b/includes/SearchPostgres.php index 3872e4669d..a5b741fa8c 100644 --- a/includes/SearchPostgres.php +++ b/includes/SearchPostgres.php @@ -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; } -- 2.20.1