librefm-commits
[Top][All Lists]
Advanced

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

[Librefm-commits] [1889] yeesh


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

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

Modified Paths:
--------------
    branches/stable/nixtape/data/Statistic.php

Modified: branches/stable/nixtape/data/Statistic.php
===================================================================
--- branches/stable/nixtape/data/Statistic.php  2009-05-29 23:23:19 UTC (rev 
1888)
+++ branches/stable/nixtape/data/Statistic.php  2009-05-29 23:24:07 UTC (rev 
1889)
@@ -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]