[Trad] [svn:pgfr] r1210 - traduc/trunk/www
admin at listes.postgresql.fr
admin at listes.postgresql.fr
Mer 10 Déc 13:55:11 CET 2008
Author: gleu
Date: 2008-12-10 13:55:11 +0100 (Wed, 10 Dec 2008)
New Revision: 1210
Modified:
traduc/trunk/www/search.php
Log:
Correction de la gestion des mots cl?\195?\169s (v?\195?\169rification d'un argument
suppl?\195?\169mentaire apr?\195?\168s le mot cl?\195?\169), suite au rapport de Denis Bitouz?\195?\169.
Modified: traduc/trunk/www/search.php
===================================================================
--- traduc/trunk/www/search.php 2008-12-09 23:52:46 UTC (rev 1209)
+++ traduc/trunk/www/search.php 2008-12-10 12:55:11 UTC (rev 1210)
@@ -160,13 +160,14 @@
if (strlen($terms[1])) {
$searchstring .= ' & !';
}
- if (strtolower($terms[2]) === 'and') {
+ if (strtolower($terms[2]) === 'and' && strlen($terms[3]) > 0) {
$searchstring .= ' & ';
}
- else if (strtolower($terms[2]) === 'or' or $terms[2] === '|') {
+ else if ((strtolower($terms[2]) === 'or' or $terms[2] === '|') &&
+ strlen($terms[3]) > 0) {
$searchstring .= ' | ';
}
- else if (strtolower($terms[2]) === 'not') {
+ else if (strtolower($terms[2]) === 'not' && strlen($terms[3]) > 0) {
$searchstring .= ' & !';
}
else {
More information about the Trad
mailing list