bug recherche vide

This commit is contained in:
Fred Tempez 2020-08-17 15:36:31 +02:00
parent bd12f3d5d9
commit 4c43750e3a

View File

@ -94,7 +94,7 @@ class search extends common {
$keywords = substr($keywords,0,strlen($keywords) - 1); $keywords = substr($keywords,0,strlen($keywords) - 1);
$keywords .= ')/i'; $keywords .= ')/i';
//echo $keywords; //echo $keywords;
if ($keywords !== "" && strlen($keywords) > 2) { if (self::$motclef !== "" && strlen($keywords) > 2) {
foreach($this->getHierarchy(null,false,null) as $parentId => $childIds) { foreach($this->getHierarchy(null,false,null) as $parentId => $childIds) {
if ($this->getData(['page', $parentId, 'disable']) === false && if ($this->getData(['page', $parentId, 'disable']) === false &&
$this->getUser('group') >= $this->getData(['page', $parentId, 'group']) && $this->getUser('group') >= $this->getData(['page', $parentId, 'group']) &&