mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
torrent keyword search remove or
This commit is contained in:
@@ -97,9 +97,10 @@ function hash_pad($hash) {
|
||||
}
|
||||
|
||||
function hash_where($name, $hash) {
|
||||
$shhash = preg_replace('/ *$/s', "", $hash);
|
||||
// $shhash = preg_replace('/ *$/s', "", $hash);
|
||||
// return "($name = " . sqlesc($hash) . " OR $name = " . sqlesc($shhash) . ")";
|
||||
return sprintf("$name in (%s, %s)", sqlesc($hash), sqlesc($shhash));
|
||||
// return sprintf("$name in (%s, %s)", sqlesc($hash), sqlesc($shhash));
|
||||
return "$name = " . sqlesc($hash);
|
||||
}
|
||||
|
||||
//no need any more...
|
||||
|
||||
Reference in New Issue
Block a user