librefm-commits
[Top][All Lists]
Advanced

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

[Librefm-commits] [1890] yeesh


From: Clint Adams
Subject: [Librefm-commits] [1890] yeesh
Date: Wed, 03 Jun 2009 14:49:48 +0000

Revision: 1890
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1890
Author:   clint
Date:     2009-06-03 14:49:48 +0000 (Wed, 03 Jun 2009)
Log Message:
-----------
yeesh

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

Modified: trunk/nixtape/data/Statistic.php
===================================================================
--- trunk/nixtape/data/Statistic.php    2009-06-03 14:49:45 UTC (rev 1889)
+++ trunk/nixtape/data/Statistic.php    2009-06-03 14:49:48 UTC (rev 1890)
@@ -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]