diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-21 18:26:00 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-21 18:26:00 +0000 |
commit | 090d4f6899a456a535d392a93fdfddb6d2263f13 (patch) | |
tree | f895b16856a6b1e72628f90040a69426314b8351 /lib/class/song.class.php | |
parent | 9ded189f8c466838c4a1913126383ee21061e102 (diff) | |
download | ampache-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.php | 2 |
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')) { |