Skip to content

Commit

Permalink
Fix Issue #1573
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilandor committed May 11, 2017
1 parent c32f945 commit ecd53cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/ratings/ratings.admin.php
Expand Up @@ -62,12 +62,12 @@
$sql1 = $db->query("SELECT COUNT(*) FROM $db_rated WHERE rated_code=" . $db->quote($id2));
$votes = $sql1->fetchColumn();

$rat_type = mb_substr($row['rating_code'], 0, 1);
$rat_value = mb_substr($row['rating_code'], 1);
$rat_type = $row['rating_area'];
$rat_value = $row['rating_code'];

switch($rat_type)
{
case 'p':
case 'page':
$rat_url = cot_url('page', 'id='.$rat_value);
break;
default:
Expand Down

0 comments on commit ecd53cc

Please sign in to comment.