[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1114] correction
From: |
Clint Adams |
Subject: |
[Librefm-commits] [1114] correction |
Date: |
Sat, 02 May 2009 04:35:53 +0000 |
Revision: 1114
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1114
Author: clint
Date: 2009-05-02 04:35:53 +0000 (Sat, 02 May 2009)
Log Message:
-----------
correction
Modified Paths:
--------------
branches/stable/gnukebox/scrobble-utils.php
Modified: branches/stable/gnukebox/scrobble-utils.php
===================================================================
--- branches/stable/gnukebox/scrobble-utils.php 2009-05-02 04:33:33 UTC (rev
1113)
+++ branches/stable/gnukebox/scrobble-utils.php 2009-05-02 04:35:53 UTC (rev
1114)
@@ -131,10 +131,7 @@
function getScrobbleTrackCreateIfNew($artist, $album, $track, $mbid, $tid) {
global $mdb2;
- if($album) { $album = strtolower($album); }
- if($mbid) { $mbid = strtolower($mbid); }
-
- $res = $mdb2->query("SELECT id FROM Scrobble_Track WHERE name = " .
(strtolower($track)) . " AND artist = " . (strtolower($artist)) . " AND album =
" . ($album) . " AND mbid = " . ($mbid));
+ $res = $mdb2->query("SELECT id FROM Scrobble_Track WHERE name = " .
(strtolower($track)) . " AND artist = " . (strtolower($artist)) . " AND album "
. (($album == 'NULL') ? "IS NULL" : ("= " . (strtolower($album)))) . " AND mbid
" . (($mbid == 'NULL') ? "IS NULL" : ("= " . (strtolower($mbid)))));
if(PEAR::isError($res)) {
die("FAILED " . $res->getMessage() . "\n");
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1114] correction,
Clint Adams <=