01-09-2013, 04:49 PM
(01-09-2013, 02:18 PM)blaszta Wrote: When I try to search a document, this error messages appear:
(Before Header) Notice: Undefined index: fullsearch in D:\xampp\htdocs\letodms\op\op.Search.php on line 40
(Before result) Notice: Undefined offset: 0 in D:\xampp\htdocs\letodms\core\Core\inc.ClassDMS.php on line 598
I did activate the full text search, but I disabled it again (don't need it for now). How to hide this 2 error message?
Btw, the search result show just fine.
The first one is just due to lasy programming. Replace line 40 of op\op.Search.php by
PHP Code:
if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) {
The second notice shouldn't appear unless the database query fails. Anyway replace that line with
PHP Code:
if ($resArr && isset($resArr[0]) && is_numeric($resArr[0]["num"]) && $resArr[0]["num"]>0) {
I will fix both in 3.4.2
Thanks for reporting it.
Uwe