diff options
Diffstat (limited to '')
-rw-r--r-- | include/functions_rate.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_rate.inc.php b/include/functions_rate.inc.php index 520c257c2..a9b6f804e 100644 --- a/include/functions_rate.inc.php +++ b/include/functions_rate.inc.php @@ -124,7 +124,7 @@ SELECT COUNT(rate) AS count FROM '.RATE_TABLE.' WHERE element_id = '.$image_id.' ;'; - $row = mysql_fetch_assoc(pwg_query($query)); + $row = pwg_db_fetch_assoc(pwg_query($query)); $query = ' UPDATE '.IMAGES_TABLE.' SET average_rate = '.$row['average'].' |