BUG#1205 Use is_array instead of trusting implicit type conversion
authorJens Frank <jeluf@users.mediawiki.org>
Tue, 11 Jan 2005 00:06:00 +0000 (00:06 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Tue, 11 Jan 2005 00:06:00 +0000 (00:06 +0000)
includes/Article.php

index 3876d77..7106bfb 100644 (file)
@@ -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';