librefm-commits
[Top][All Lists]
Advanced

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

[Librefm-commits] [1888] yeesh


From: Clint Adams
Subject: [Librefm-commits] [1888] yeesh
Date: Fri, 29 May 2009 23:23:19 +0000

Revision: 1888
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1888
Author:   clint
Date:     2009-05-29 23:23:19 +0000 (Fri, 29 May 2009)
Log Message:
-----------
yeesh

Modified Paths:
--------------
    trunk/nixtape/data/Statistic.php

Modified: trunk/nixtape/data/Statistic.php
===================================================================
--- trunk/nixtape/data/Statistic.php    2009-05-29 21:27:51 UTC (rev 1887)
+++ trunk/nixtape/data/Statistic.php    2009-05-29 23:23:19 UTC (rev 1888)
@@ -81,7 +81,7 @@
                if( strpos($connect_string , 'mysql' ) === 0 ) $query = 'SELECT 
COUNT(*) as count,DATE(FROM_UNIXTIME(time)) as date FROM ' .  $table;
 
                $query .= (!is_null($constraint)) ? ' WHERE ' : null;
-               $query .= (!is_null($constraint)) ? ' username = ' . 
($constraint) : null;
+               $query .= (!is_null($constraint)) ? ' userid = ' . 
($constraint) : null;
                $query .= ' GROUP BY date ORDER BY date DESC LIMIT ' . $limit;
                $adodb->SetFetchMode(ADODB_FETCH_ASSOC);
                try {





reply via email to

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