Index: trunk/core/kernel/languages/phrases_cache.php =================================================================== diff -u -r1766 -r2232 --- trunk/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 1766) +++ trunk/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 2232) @@ -1,7 +1,15 @@ Conn =& $this->Application->GetADODBConnection(); + $this->Phrases = Array(); $this->LanguageId = $LanguageId; $this->LoadPhrases( $this->GetCachedIds() ); @@ -24,8 +34,7 @@ TABLE_PREFIX.'PhraseCache', $this->Conn->Qstr(md5($this->Application->GetVar('t')))); $phrases_ids = $this->Conn->GetOne($query); - if ($phrases_ids === false) return Array(); - return explode(',', $phrases_ids); + return ($phrases_ids === false) ? Array() : explode(',', $phrases_ids); } function LoadPhrases($ids) @@ -72,7 +81,8 @@ $original_label = $label; $label = strtoupper($label); - if( isset($this->Phrases[$label]) ) { + if( isset($this->Phrases[$label]) ) + { $translated_label = $this->Phrases[$label]; if($this->Application->isDebugMode() && dbg_ConstOn('DBG_PHRASES_HILIGHT') && !$this->Application->IsAdmin()) $translated_label = ''.$translated_label.''; Index: trunk/core/kernel/kbase.php =================================================================== diff -u -r2230 -r2232 --- trunk/core/kernel/kbase.php (.../kbase.php) (revision 2230) +++ trunk/core/kernel/kbase.php (.../kbase.php) (revision 2232) @@ -94,7 +94,7 @@ class kDBBase extends kBase { /** - * Description + * Connection to database * * @var DBConnection * @access public