Skip to content
Permalink
Browse files

fixed typos in recommendation-revocation function; updates #713

  • Loading branch information...
following5 committed Aug 5, 2015
1 parent f57b26c commit e6c26c51bab7200bcbba50a7bd35162e1ba10c0b
Showing with 2 additions and 2 deletions.
  1. +2 −2 htdocs/lib/recommendation.inc.php
@@ -41,7 +41,7 @@ function discard_recommendation($log_id)
$rFirstOtherFound = sql_fetch_assoc($rsFirstOtherFound);
sql_free_result($rsFirstOtherFound);
if ($rLog['is_rating_log'] && $rsFirstOtherFound)
if ($rLog['is_rating_log'] && $rFirstOtherFound)
{
sql("
UPDATE `cache_rating`
@@ -52,7 +52,7 @@ function discard_recommendation($log_id)
// log, so that XML interface will resend it with the updated
// "recommendation" flag.
}
else if (!$rsFirstOtherFound)
else if (!$rFirstOtherFound)
{
// This is also called for $rLog['is_rating_log'] == false, so that
// even a rating record with inconsistent date gets deleted.

0 comments on commit e6c26c5

Please sign in to comment.
You can’t perform that action at this time.