~cjsmo/ampache/ampache

« back to all changes in this revision

Viewing changes to lib/class/tmp_playlist.class.php

  • Committer: Afterster
  • Date: 2015-11-07 07:09:23 UTC
  • mfrom: (3952.1.1)
  • Revision ID: git-v1:88b4662919026b030698448b7cdf6c8dc0cb9897
Merge branch 'Psy-Virus-develop' into develop

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
     */
70
70
    private function _get_info()
71
71
    {
72
 
        $sql = "SELECT * FROM `tmp_playlist` WHERE `id`='" . Dba::escape($this->id) . "'";
 
72
        $sql        = "SELECT * FROM `tmp_playlist` WHERE `id`='" . Dba::escape($this->id) . "'";
73
73
        $db_results = Dba::read($sql);
74
74
 
75
75
        $results = Dba::fetch_assoc($db_results);
86
86
    {
87
87
        $session_id = Dba::escape($session_id);
88
88
 
89
 
        $sql = "SELECT `id` FROM `tmp_playlist` WHERE `session`='$session_id'";
 
89
        $sql        = "SELECT `id` FROM `tmp_playlist` WHERE `session`='$session_id'";
90
90
        $db_results = Dba::read($sql);
91
91
 
92
92
        $results = Dba::fetch_row($db_results);
114
114
        // This is a little stupid, but because we don't have the
115
115
        // user_id in the session or in the tmp_playlist table we have
116
116
        // to do it this way.
117
 
        $client = new User($user_id);
 
117
        $client   = new User($user_id);
118
118
        $username = Dba::escape($client->username);
119
119
 
120
120
        $sql = "SELECT `tmp_playlist`.`id` FROM `tmp_playlist` " .