[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1524] exception on nowplaying
From: |
Clint Adams |
Subject: |
[Librefm-commits] [1524] exception on nowplaying |
Date: |
Tue, 12 May 2009 04:26:10 +0000 |
Revision: 1524
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1524
Author: clint
Date: 2009-05-12 04:26:10 +0000 (Tue, 12 May 2009)
Log Message:
-----------
exception on nowplaying
Modified Paths:
--------------
trunk/gnukebox/nowplaying/1.2/index.php
Modified: trunk/gnukebox/nowplaying/1.2/index.php
===================================================================
--- trunk/gnukebox/nowplaying/1.2/index.php 2009-05-12 03:45:35 UTC (rev
1523)
+++ trunk/gnukebox/nowplaying/1.2/index.php 2009-05-12 04:26:10 UTC (rev
1524)
@@ -66,6 +66,7 @@
//Delete this user's last playing song (if any)
$adodb->Execute("DELETE FROM Now_Playing WHERE sessionid = " . ($MQsess));
+try {
$adodb->Execute("INSERT INTO Now_Playing (sessionid, artist, album, track,
expires, mbid) VALUES ("
. $MQsess . ", "
. $artist . ", "
@@ -73,8 +74,11 @@
. $track . ", "
. $expires . ", "
. $mbid . ")");
+}
+catch (exception $e) {
+ die("FAILED " . $e->getMessage() . "\n");
+}
-
die("OK\n");
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1524] exception on nowplaying,
Clint Adams <=