projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8080720
)
Fix charset caching.
author
Jan Schneider
<jan@horde.org>
Sun, 23 Aug 2009 13:35:32 +0000
(15:35 +0200)
committer
Jan Schneider
<jan@horde.org>
Sun, 23 Aug 2009 13:35:32 +0000
(15:35 +0200)
framework/Nls/lib/Horde/Nls.php
patch
|
blob
|
history
diff --git
a/framework/Nls/lib/Horde/Nls.php
b/framework/Nls/lib/Horde/Nls.php
index
6a0c17c
..
6287f10
100644
(file)
--- a/
framework/Nls/lib/Horde/Nls.php
+++ b/
framework/Nls/lib/Horde/Nls.php
@@
-314,12
+314,12
@@
class Horde_Nls
*/
static public function _cachedCharset($index, $charset = null)
{
- if (
$charset == null
) {
+ if (
is_null($charset)
) {
return isset(self::$_cache['charset'][$index])
? self::$_cache['charset'][$index]
: null;
} else {
-
$cache
[$index] = $charset;
+
self::$_cache['charset']
[$index] = $charset;
}
}