Index: trunk/kernel/include/searchitems.php
===================================================================
diff -u -r4084 -r4683
--- trunk/kernel/include/searchitems.php (.../searchitems.php) (revision 4084)
+++ trunk/kernel/include/searchitems.php (.../searchitems.php) (revision 4683)
@@ -60,16 +60,18 @@
function UpdateKeyword($keyword,$SearchType)
{
- $sql = "UPDATE ".$this->SourceTable." SET Indices = Indices+1 WHERE Keyword='$keyword' AND SearchType=$SearchType";
+ $sql = 'UPDATE '.$this->SourceTable.'
+ SET Indices = Indices + 1
+ WHERE Keyword = '.$this->adodbConnection->qstr($keyword).' AND SearchType = '.$SearchType;
//echo $sql."
\n";
$this->adodbConnection->Execute($sql);
if($this->adodbConnection->Affected_Rows()==0)
{
//echo "Creating Keyword record..
\n";
$k = new clsSearchLog();
- $k->Set("Keyword",$keyword);
- $k->Set("Indices",1);
- $k->Set("SearchType",$SearchType);
+ $k->Set('Keyword', $keyword);
+ $k->Set('Indices', 1);
+ $k->Set('SearchType', $SearchType);
$k->Create();
}
}