librefm-commits
[Top][All Lists]
Advanced

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

[Librefm-commits] [1167] proper paren placement


From: Clint Adams
Subject: [Librefm-commits] [1167] proper paren placement
Date: Sun, 03 May 2009 22:01:43 +0000

Revision: 1167
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1167
Author:   clint
Date:     2009-05-03 22:01:41 +0000 (Sun, 03 May 2009)
Log Message:
-----------
proper paren placement

Modified Paths:
--------------
    trunk/gnukebox/scrobble-utils.php

Modified: trunk/gnukebox/scrobble-utils.php
===================================================================
--- trunk/gnukebox/scrobble-utils.php   2009-05-03 21:54:26 UTC (rev 1166)
+++ trunk/gnukebox/scrobble-utils.php   2009-05-03 22:01:41 UTC (rev 1167)
@@ -143,8 +143,8 @@
                $sql = "INSERT INTO Scrobble_Track (name, artist, album, mbid, 
track) VALUES ("
                        . "lower(" . ($track) . "), "
                        . "lower(" . ($artist) . "), "
-                       . (($album == 'NULL') ? "NULL" : "lower(" . ($album)) . 
"), "
-                       . (($mbid == 'NULL') ? "NULL" : "lower(" . ($mbid)) . 
"), "
+                       . (($album == 'NULL') ? "NULL" : "lower(" . ($album) . 
")") . ", "
+                       . (($mbid == 'NULL') ? "NULL" : "lower(" . ($mbid) . 
")") . ", "
                        . ($tid) . ")";
                $res = $mdb2->exec($sql);
                if(PEAR::isError($res)) {





reply via email to

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