cvs: phpweb /include manual-lookup.inc
| From: | Hannes Magnusson | Date: | Wed, 03 Oct 2007 14:32:16 +0000 |
| Subject: | cvs: phpweb /include manual-lookup.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-163@lists.php.net to get a copy of this message | ||
bjori Wed Oct 3 14:32:16 2007 UTC
Modified files:
/phpweb/include manual-lookup.inc
Log:
Fix possible warning
http://cvs.php.net/viewvc.cgi/phpweb/include/manual-lookup.inc?r1=1.29&r2=1.30&diff_format=u
Index: phpweb/include/manual-lookup.inc
diff -u phpweb/include/manual-lookup.inc:1.29 phpweb/include/manual-lookup.inc:1.30
--- phpweb/include/manual-lookup.inc:1.29 Mon Jun 18 16:46:07 2007
+++ phpweb/include/manual-lookup.inc Wed Oct 3 14:32:16 2007
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: manual-lookup.inc,v 1.29 2007/06/18 16:46:07 bjori Exp $
+// $Id: manual-lookup.inc,v 1.30 2007/10/03 14:32:16 bjori Exp $
// We need this for error reporting
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc';
@@ -144,7 +144,7 @@
if ($q) {
$r = sqlite_fetch_array($q, SQLITE_NUM);
if (isset($r[0])) {
- if($r[1] > 10 && strlen($keyword) < 4) {
+ if(isset($r[1]) && $r[1] > 10 && strlen($keyword) < 4) {
// "Match" found, but the keyword is so short
// its probably bogus. Skip it
continue;