Empty commit

This commit is contained in:
Git 2012-10-22 08:00:11 +00:00
parent 32b6a33e50
commit f42f2a7eaf
2 changed files with 10 additions and 4 deletions

View File

@ -244,11 +244,18 @@ public function where_between($Attribute, $Values) {
* @param string $Field field to match $Expr against. Default is *, which means all available fields * @param string $Field field to match $Expr against. Default is *, which means all available fields
* @return current SphinxQL query object * @return current SphinxQL query object
*/ */
public function where_match($Expr, $Field = '*') { public function where_match($Expr, $Field = '*', $Escape = true) {
if(empty($Expr)) { if(empty($Expr)) {
return $this; return $this;
} }
$this->Expressions[] = "@$Field ".SphinxQL::escape_string($Expr); if ($Field !== false) {
$Field = "@$Field ";
}
if ($Escape === true) {
$this->Expressions[] = "$Field".SphinxQL::escape_string($Expr);
} else {
$this->Expressions[] = $Field.$Expr;
}
return $this; return $this;
} }

View File

@ -89,9 +89,8 @@
<tr><td><a href="tools.php?action=sandbox6">Sandbox (6)</a></td></tr> <tr><td><a href="tools.php?action=sandbox6">Sandbox (6)</a></td></tr>
<tr><td><a href="tools.php?action=sandbox7">Sandbox (7)</a></td></tr> <tr><td><a href="tools.php?action=sandbox7">Sandbox (7)</a></td></tr>
<tr><td><a href="tools.php?action=sandbox8">Sandbox (8)</a></td></tr> <tr><td><a href="tools.php?action=sandbox8">Sandbox (8)</a></td></tr>
<tr><td><a href="tools.php?action=nightoath">NightOath's Sandbox</a></td></tr>
<tr><td><a href="schedule.php?auth=<?=$LoggedUser['AuthKey']?>">Schedule</a></td></tr> <tr><td><a href="schedule.php?auth=<?=$LoggedUser['AuthKey']?>">Schedule</a></td></tr>
<tr><td><a href="tools.php?action=branches">Git branches</a></td></tr>
<? }?> <? }?>
<tr><td><strong><a href="tools.php?action=public_sandbox">Public Sandbox</a></strong></td></tr> <tr><td><strong><a href="tools.php?action=public_sandbox">Public Sandbox</a></strong></td></tr>
<? if (check_perms('users_mod')) { ?> <? if (check_perms('users_mod')) { ?>