summaryrefslogtreecommitdiffstats
path: root/lib/class/song.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-21 18:26:00 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-21 18:26:00 +0000
commit090d4f6899a456a535d392a93fdfddb6d2263f13 (patch)
treef895b16856a6b1e72628f90040a69426314b8351 /lib/class/song.class.php
parent9ded189f8c466838c4a1913126383ee21061e102 (diff)
downloadampache-090d4f6899a456a535d392a93fdfddb6d2263f13.tar.gz
ampache-090d4f6899a456a535d392a93fdfddb6d2263f13.tar.bz2
ampache-090d4f6899a456a535d392a93fdfddb6d2263f13.zip
some temporary tweaks to make the whole amarok thing work, will be tweaking this as it is currently slightly insecure
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r--lib/class/song.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index e912e511..8cc89308 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -784,7 +784,7 @@ class Song {
function get_url($session_id='',$force_http='') {
/* Define Variables we are going to need */
- $user_id = scrub_out($GLOBALS['user']->id);
+ $user_id = $GLOBALS['user']->id ? scrub_out($GLOBALS['user']->id) : '-1';
$song_id = $this->id;
if (Config::get('require_session')) {