[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1239] use adodb quoting for tag clouds
From: |
Clint Adams |
Subject: |
[Librefm-commits] [1239] use adodb quoting for tag clouds |
Date: |
Wed, 06 May 2009 19:59:20 +0000 |
Revision: 1239
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1239
Author: clint
Date: 2009-05-06 19:59:19 +0000 (Wed, 06 May 2009)
Log Message:
-----------
use adodb quoting for tag clouds
Modified Paths:
--------------
trunk/nixtape/data/TagCloud.php
Modified: trunk/nixtape/data/TagCloud.php
===================================================================
--- trunk/nixtape/data/TagCloud.php 2009-05-06 19:56:04 UTC (rev 1238)
+++ trunk/nixtape/data/TagCloud.php 2009-05-06 19:59:19 UTC (rev 1239)
@@ -41,11 +41,11 @@
$query = "SELECT $field, count(*) AS count FROM $table";
$query .= (!is_null($constraint)) ? ' WHERE ' : null;
if ($constrained_field) {
- $query .= (!is_null($constraint)) ? " $constrained_field = " .
$mdb2->quote($constraint, 'text') : null;
+ $query .= (!is_null($constraint)) ? " $constrained_field = " .
$adodb->qstr($constraint) : null;
} elseif ($field == "track") {
- $query .= (!is_null($constraint)) ? ' artist = ' .
$mdb2->quote($constraint, 'text') : null;
+ $query .= (!is_null($constraint)) ? ' artist = ' .
$adodb->qstr($constraint) : null;
} else {
- $query .= (!is_null($constraint)) ? ' username = ' .
$mdb2->quote($constraint, 'text') : null;
+ $query .= (!is_null($constraint)) ? ' username = ' .
$adodb->qstr($constraint) : null;
}
$query .= " GROUP BY $field ORDER BY count DESC LIMIT $limit";
$adodb->SetFetchMode(ADODB_FETCH_ASSOC);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1239] use adodb quoting for tag clouds,
Clint Adams <=