librefm-commits
[Top][All Lists]
Advanced

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

[Librefm-commits] [1770] add try


From: Matt Lee
Subject: [Librefm-commits] [1770] add try
Date: Sun, 24 May 2009 15:53:22 +0000

Revision: 1770
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1770
Author:   mattl
Date:     2009-05-24 15:53:22 +0000 (Sun, 24 May 2009)
Log Message:
-----------
add try

Modified Paths:
--------------
    trunk/gnukebox/display.php

Modified: trunk/gnukebox/display.php
===================================================================
--- trunk/gnukebox/display.php  2009-05-24 15:49:16 UTC (rev 1769)
+++ trunk/gnukebox/display.php  2009-05-24 15:53:22 UTC (rev 1770)
@@ -43,8 +43,12 @@
 
        $adodb->SetFetchMode(ADODB_FETCH_ASSOC);
 
+       try {
+
        $res = $adodb->CacheGetAll(60, "SELECT username, artist, track, time 
FROM Scrobbles ORDER BY time DESC LIMIT 100");
 
+       }
+
        catch (exception $e)
        {
                die($e->getMessage());





reply via email to

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