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:
f6c8f40
)
Instead of giving weird-ass results when an array is passed to Language::lcfirst...
author
Brion Vibber
<brion@users.mediawiki.org>
Fri, 16 Nov 2007 23:10:07 +0000
(23:10 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Fri, 16 Nov 2007 23:10:07 +0000
(23:10 +0000)
languages/Language.php
patch
|
blob
|
history
diff --git
a/languages/Language.php
b/languages/Language.php
index
fda406a
..
0fda0db
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-1202,7
+1202,7
@@
class Language {
function lcfirst( $str ) {
if ( empty($str) ) return $str;
- if ( ord($str[0]) < 128 ) {
+ if (
is_string( $str ) &&
ord($str[0]) < 128 ) {
// editing string in place = cool
$str[0]=strtolower($str[0]);
return $str;