From: Greg Sabino Mullane Date: Wed, 16 May 2007 20:31:58 +0000 (+0000) Subject: More defined() that should be isset(), thanks to David Ford, david@blue-labs.org X-Git-Tag: 1.31.0-rc.0~52892 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=5b79cfb9b192514586fbd20cf7dc8305faf93a2c;p=lhc%2Fweb%2Fwiklou.git More defined() that should be isset(), thanks to David Ford, david@blue-labs.org --- 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; }