From 411fbb72f5a4c72e43af08ee403c79c73eb4b53f Mon Sep 17 00:00:00 2001 From: knut <> Date: Wed, 30 Jul 2008 01:43:12 +0000 Subject: fixed #890 --- framework/I18N/core/MessageSource_XLIFF.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'framework/I18N/core/MessageSource_XLIFF.php') diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php index 64277e7b..c3dfabd9 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -251,8 +251,9 @@ class MessageSource_XLIFF extends MessageSource */ private function getVariants($catalogue='messages') { - if(is_null($catalogue)) + if($catalogue === null) { $catalogue = 'messages'; + } foreach($this->getCatalogueList($catalogue) as $variant) { @@ -478,8 +479,9 @@ class MessageSource_XLIFF extends MessageSource protected function createMessageTemplate($catalogue) { - if(is_null($catalogue)) + if($catalogue === null) { $catalogue = 'messages'; + } $variants = $this->getCatalogueList($catalogue); $variant = array_shift($variants); $file = $this->getSource($variant); -- cgit v1.2.3