summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-02-12 16:38:22 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-03-28 16:56:22 -0400
commit1197b3a03ec9abbbfb67714f4a34d5f9a9e47eb1 (patch)
treef38fe7d449457c5bd56ace71d99bddbab9e07d69
parent58ba28b0d36d3b823e8631814888f604dd82510d (diff)
downloadampache-1197b3a03ec9abbbfb67714f4a34d5f9a9e47eb1.tar.gz
ampache-1197b3a03ec9abbbfb67714f4a34d5f9a9e47eb1.tar.bz2
ampache-1197b3a03ec9abbbfb67714f4a34d5f9a9e47eb1.zip
Fix Rating::gc()
-rw-r--r--lib/class/rating.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/rating.class.php b/lib/class/rating.class.php
index 76b8c85e..1e983d42 100644
--- a/lib/class/rating.class.php
+++ b/lib/class/rating.class.php
@@ -55,7 +55,7 @@ class Rating extends database_object {
*/
public static function gc() {
foreach(array('song', 'album', 'artist', 'video') as $object_type) {
- Dba::write("DELETE FROM `rating` USING `rating` LEFT JOIN `$object_type` ON `$object_type`.`id` = `rating`.`object_type` WHERE `object_type` = '$object_type` AND `$object_type`.`id` IS NULL");
+ Dba::write("DELETE FROM `rating` USING `rating` LEFT JOIN `$object_type` ON `$object_type`.`id` = `rating`.`object_type` WHERE `object_type` = '$object_type' AND `$object_type`.`id` IS NULL");
}
}