Fehler bei eigenen Beschreibungstexten für Rating behoben.

This commit is contained in:
Carsten Götzinger 2015-02-01 11:41:02 +01:00
parent 0bf343a285
commit 90a65bcc43
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class RateItFrontend extends \Hybrid
$this->loadLanguageFile('default');
$stars = $this->percentToStars($rating['rating']);
preg_match('/^.*\[(.+)\|(.+)\].*$/i', $GLOBALS['TL_CONFIG']['rating_description'], $labels);
if (!is_array($labels) || !count($labels) == 2 || !count($labels) == 3) {
if (!is_array($labels) && (!count($labels) == 2 || !count($labels) == 3)) {
$label = ($rating[totalRatings] > 1 || $rating[totalRatings] == 0) || !$rating ? $GLOBALS['TL_LANG']['rateit']['rating_label'][1] : $GLOBALS['TL_LANG']['rateit']['rating_label'][0];
$description = '%current%/%max% %type% (%count% ['.$GLOBALS['TL_LANG']['tl_rateit']['vote'][0].'|'.$GLOBALS['TL_LANG']['tl_rateit']['vote'][1].'])';
} else {