diff options
Diffstat (limited to 'play/index.php')
-rw-r--r-- | play/index.php | 4 |
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); |