Index: trunk/kernel/units/reviews/reviews_tag_processor.php =================================================================== diff -u -N -r6093 -r7391 --- trunk/kernel/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 6093) +++ trunk/kernel/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 7391) @@ -52,7 +52,7 @@ function AlreadyReviewed($params) { - $user_id = ($this->Application->GetVar('u_id') == 0) ? -2 : $this->Application->GetVar('u_id'); + $user_id = $this->getUserID(); $object =& $this->getObject( Array('skip_autoload' => true) ); $product_info = $object->getLinkedInfo(); @@ -89,6 +89,22 @@ return 0; } } + + /** + * Returns current user id for reviews, for logic ask Kostja T. + * + * @return int + */ + function getUserID() + { + $user_id = $this->Application->RecallVar('user_id'); + + if ($user_id == 0) { + $user_id = -2; + } + + return $user_id; + } }