From de0deca8541332971fe5cfa57b5343c7c4ee8542 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 19 Jun 2007 04:56:07 +0000 Subject: fixed an issue with songs stopping a little early depending on the client you use --- lib/class/song.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/class') diff --git a/lib/class/song.class.php b/lib/class/song.class.php index 0835c7c1..81b1bd01 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -303,17 +303,15 @@ class Song { * set_played * this checks to see if the current object has been played * if not then it sets it to played - * @package Song - * @catagory Class */ - function set_played() { + public function set_played() { if ($this->played) { return true; } /* If it hasn't been played, set it! */ - $this->update_played('1'); + self::update_played('1',$this->id); return true; -- cgit