Fehler bei eigenen Beschreibungstexten für Rating behoben.
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user