From: Jens Frank Date: Tue, 11 Jan 2005 00:06:00 +0000 (+0000) Subject: BUG#1205 Use is_array instead of trusting implicit type conversion X-Git-Tag: 1.5.0alpha1~970 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=25ed7cd1d566d33ac181e8cb45bd070e2a80ceb0;p=lhc%2Fweb%2Fwiklou.git BUG#1205 Use is_array instead of trusting implicit type conversion --- diff --git a/includes/Article.php b/includes/Article.php index 3876d77492..7106bfbd8b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -407,7 +407,7 @@ class Article { */ function getSelectOptions( $options = '' ) { if ( $this->mForUpdate ) { - if ( $options ) { + if ( is_array( $options ) ) { $options[] = 'FOR UPDATE'; } else { $options = 'FOR UPDATE';