summaryrefslogtreecommitdiffstats
path: root/lib/class/stream.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-02-14 01:33:15 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-02-14 01:33:15 +0000
commit45bf0c4e0c609fd2c495a9f3fe375a1b4aa371f7 (patch)
tree5a95c680f37617aac7d5aa1689750747e97fa25e /lib/class/stream.class.php
parenta7869cad8f8c7290898255e2f8ed8927d42d5426 (diff)
downloadampache-45bf0c4e0c609fd2c495a9f3fe375a1b4aa371f7.tar.gz
ampache-45bf0c4e0c609fd2c495a9f3fe375a1b4aa371f7.tar.bz2
ampache-45bf0c4e0c609fd2c495a9f3fe375a1b4aa371f7.zip
Fix typos, and tweak insert_now_playing preping for Video now playing
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r--lib/class/stream.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index 3875da6b..7e60a925 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -728,9 +728,9 @@ class Stream {
*/
public static function insert_now_playing($oid,$uid,$length,$sid,$type) {
- $time = time()+$length;
+ $time = intval(time()+$length);
$session_id = Dba::escape($sid);
- $object_type = 'song';
+ $object_type = Dba::escape(strtolower($type));
// Do a replace into ensuring that this client always only has a single row
$sql = "REPLACE INTO `now_playing` (`id`,`object_id`,`object_type`, `user`, `expire`)" .