librefm-commits
[Top][All Lists]
Advanced

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

[Librefm-commits] [1792] fixed this.


From: Matt Lee
Subject: [Librefm-commits] [1792] fixed this.
Date: Sun, 24 May 2009 16:44:57 +0000

Revision: 1792
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1792
Author:   mattl
Date:     2009-05-24 16:44:57 +0000 (Sun, 24 May 2009)
Log Message:
-----------
fixed this. $res wasn't being used anymore...

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

Modified: trunk/gnukebox/stats.php
===================================================================
--- trunk/gnukebox/stats.php    2009-05-24 16:41:54 UTC (rev 1791)
+++ trunk/gnukebox/stats.php    2009-05-24 16:44:57 UTC (rev 1792)
@@ -37,19 +37,19 @@
                <?php
                        $adodb->SetFetchMode(ADODB_FETCH_ASSOC);
                        $total = $adodb->CacheGetOne(60, 'SELECT COUNT(*) as 
total from Scrobbles');
-                       if(!$res) {
+                       if(!$total) {
                                die("sql error");
                        }
                        echo "<p>" . stripslashes($total) . " listens.</p>";
 
                        $total = $adodb->CacheGetOne(120, 'SELECT COUNT(*) as 
total from Track');
-                       if(!$res) {
+                       if(!$total) {
                                die("sql error");
                        }
                        echo "<p>" . stripslashes($total) . " unique 
tracks.</p>";
 
                        $total = $adodb->CacheGetOne(720, 'SELECT COUNT(*) as 
total from Users');
-                       if(!$res) {
+                       if(!$total) {
                                die("sql error");
                        }
                        echo "<p>" . stripslashes($total) . " users.</p>";





reply via email to

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