librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1748] ugh


From: Clint Adams
Subject: [Librefm-commits] [1748] ugh
Date: Sat, 23 May 2009 21:11:15 +0000

Revision: 1748
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1748
Author:   clint
Date:     2009-05-23 21:11:15 +0000 (Sat, 23 May 2009)
Log Message:
-----------
ugh

Modified Paths:
--------------
    trunk/nixtape/auth.php

Modified: trunk/nixtape/auth.php
===================================================================
--- trunk/nixtape/auth.php      2009-05-23 21:10:18 UTC (rev 1747)
+++ trunk/nixtape/auth.php      2009-05-23 21:11:15 UTC (rev 1748)
@@ -28,7 +28,7 @@
        $err = 0;
        $adodb->SetFetchMode(ADODB_FETCH_ASSOC);
        try {
-               $row = $adodb->GetRow('SELECT user FROM Scrobble_Sessions WHERE 
'
+               $row = $adodb->GetRow('SELECT userid FROM Scrobble_Sessions 
WHERE '
                                . 'sessionid = ' . 
$adodb->qstr($_COOKIE['session_id'])
                                . ' AND expires > ' . (int)(time()));
        }
@@ -42,7 +42,7 @@
                session_destroy();
        } else {
                $logged_in = true;
-               $username = uniqueid_to_username();
+               $username = uniqueid_to_username($row['userid']);
                $this_user = new User($username);
        }
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]