diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Exceptions/TException.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/Exceptions/TException.php b/framework/Exceptions/TException.php index a74b76e4..e3a700b2 100644 --- a/framework/Exceptions/TException.php +++ b/framework/Exceptions/TException.php @@ -64,9 +64,7 @@ class TException extends Exception protected function translateErrorMessage($key)
{
$msgFile=$this->getErrorMessageFile();
- if(($entries=@file($msgFile))===false)
- return $key;
- else
+ if(($entries=@file($msgFile))!==false)
{
foreach($entries as $entry)
{
@@ -74,8 +72,8 @@ class TException extends Exception if(trim($code)===$key)
return trim($message);
}
- return $key;
}
+ return $key;
}
/**
|