Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Removed bar.php
Browse files Browse the repository at this point in the history
trying to get adsearch to work again. still stuck
  • Loading branch information
Chris Dickenson committed May 23, 2014
1 parent fb38875 commit 7b06834
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 34 deletions.
28 changes: 0 additions & 28 deletions admin/bar.php

This file was deleted.

10 changes: 5 additions & 5 deletions adsearch.php
Expand Up @@ -163,17 +163,17 @@
if (is_array($_SESSION['advs']['payment']) && count($_SESSION['advs']['payment']) > 1)
{
$pri = false;
foreach ($payment as $key => $val)
foreach ($payment as $key => &$val)
{
if (!$pri)
{
$ora = "((au.payment LIKE :payment" . $val . ")";
$asparams[] = array(':payment' . $val, '%' . $system->cleanvars($val) . '%', 'str');
$ora = "((au.payment LIKE :payment{$val})";
$asparams[] = array(":payment{$val}", '%' . $system->cleanvars($val) . '%', 'str');
}
else
{
$ora .= " OR (au.payment LIKE :payment" . $val . ") AND ";
$asparams[] = array(':payment' . $val, '%' . $system->cleanvars($val) . '%', 'str');
$ora .= " OR (au.payment LIKE :payment{$val}) AND ";
$asparams[] = array(":payment{$val}", '%' . $system->cleanvars($val) . '%', 'str');
}
$pri = true;
}
Expand Down
2 changes: 1 addition & 1 deletion selling.php
Expand Up @@ -38,7 +38,7 @@
if ($auc_id > 0)
{
$searchid = ' AND a.id = :auc_id';
$params[] = array(':auc_id', $_GET['id'], 'int');
$params[] = array(':auc_id', $auc_id, 'int');
}
else
{
Expand Down

0 comments on commit 7b06834

Please sign in to comment.