|
@@ -85,9 +85,9 @@ class Prepare extends Method
|
|
if (! $keyword) {
|
|
if (! $keyword) {
|
|
$keyword = true;
|
|
$keyword = true;
|
|
} elseif (empty($words)) {
|
|
} elseif (empty($words)) {
|
|
- $error = 'Syntactic word at the beginning of the search (sub)query: \'%s\'';
|
|
|
|
|
|
+ $error = 'Logical operator at the beginning of the search (sub)query: \'%s\'';
|
|
} else {
|
|
} else {
|
|
- $error = 'Syntactic words follow one after another: \'%s\'';
|
|
|
|
|
|
+ $error = 'Logical operators follow one after another: \'%s\'';
|
|
}
|
|
}
|
|
$words[] = $key;
|
|
$words[] = $key;
|
|
break;
|
|
break;
|
|
@@ -101,7 +101,7 @@ class Prepare extends Method
|
|
if (! $count) {
|
|
if (! $count) {
|
|
$error = 'Empty subquery: \'%s\'';
|
|
$error = 'Empty subquery: \'%s\'';
|
|
} elseif ($keyword) {
|
|
} elseif ($keyword) {
|
|
- $error = 'Syntactic word at the end of the search subquery: \'%s\'';
|
|
|
|
|
|
+ $error = 'Logical operator at the end of the search subquery: \'%s\'';
|
|
}
|
|
}
|
|
if (empty($stack)) {
|
|
if (empty($stack)) {
|
|
$error = 'The order of brackets is broken: \'%s\'';
|
|
$error = 'The order of brackets is broken: \'%s\'';
|
|
@@ -160,7 +160,7 @@ class Prepare extends Method
|
|
if (! $count) {
|
|
if (! $count) {
|
|
$error = 'There is no word for search: \'%s\'';
|
|
$error = 'There is no word for search: \'%s\'';
|
|
} elseif ($keyword) {
|
|
} elseif ($keyword) {
|
|
- $error = 'Syntactic word at the end of the search query: \'%s\'';
|
|
|
|
|
|
+ $error = 'Logical operator at the end of the search query: \'%s\'';
|
|
} elseif (! empty($stack)) {
|
|
} elseif (! empty($stack)) {
|
|
$error = 'The order of brackets is broken: \'%s\'';
|
|
$error = 'The order of brackets is broken: \'%s\'';
|
|
}
|
|
}
|