View Issue Details

IDProjectCategoryView StatusLast Update
0001577OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:23
Reportertomas_liubinas Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.2.0 revision 23610 
Fixed in Version4.3.0 revision 26948 
Summary0001577: RecommList::getRatingValue() should never return empty value
DescriptionRecommList::getRatingValue() should never return empty (null) value. getRatingValue() result is used as parameter in smarty math method in template. Aparently math method can not deal with empty parameters and throws warning message. Methods like this should always return int value.

"return (int) $this->_dRatingValue;" normally fixes the problem.

Please also check all other methods which are used as math param.
TagsRatings, Reviews
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

sarunas_valaskevicius

2009-12-23 16:24

reporter   ~0002253

added type checking