dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
885bc09
)
BUG#1205 Use is_array instead of trusting implicit type conversion
author
Jens Frank
<jeluf@users.mediawiki.org>
Tue, 11 Jan 2005 00:06:00 +0000
(
00:06
+0000)
committer
Jens Frank
<jeluf@users.mediawiki.org>
Tue, 11 Jan 2005 00:06:00 +0000
(
00:06
+0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
3876d77
..
7106bfb
100644
(file)
--- 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';