summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-05-11 12:41:25 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-05-11 12:41:25 +0000
commit053a91397b58c063966a454a4728a0a7243bdd4c (patch)
treee8c421bd1f3d0b43c37f80069ce0eb8b9b91e5fe /play
parent34191945a49321badb7d4c15f2d804564d40055b (diff)
downloadampache-053a91397b58c063966a454a4728a0a7243bdd4c.tar.gz
ampache-053a91397b58c063966a454a4728a0a7243bdd4c.tar.bz2
ampache-053a91397b58c063966a454a4728a0a7243bdd4c.zip
fix typo on get_class() check causing it to not identify song objects correctly
Diffstat (limited to 'play')
-rw-r--r--play/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/play/index.php b/play/index.php
index b63ba7b6..4a3a5b8c 100644
--- a/play/index.php
+++ b/play/index.php
@@ -318,7 +318,7 @@ else {
} // else not downsampling
// Put this song in the now_playing table only if it's a song for now...
-if (get_class($media) == 'song') {
+if (get_class($media) == 'Song') {
Stream::insert_now_playing($media->id,$uid,$media->time,$sid,get_class($media));
}
@@ -373,7 +373,7 @@ if($bytes_streamed < $stream_size AND (connection_status() == 0)) {
}
// Make sure that a good chunk of the song has been played
-if ($bytes_streamed > $min_bytes_streamed AND get_class($media) == 'song') {
+if ($bytes_streamed > $min_bytes_streamed AND get_class($media) == 'Song') {
debug_event('Play','Registering stats for ' . $media->title,'5');
$user->update_stats($media->id);