diff --git a/Services/Search/classes/Lucene/class.ilLuceneSearchGUI.php b/Services/Search/classes/Lucene/class.ilLuceneSearchGUI.php index 4ffb2fdb10f8..b7733943f5ce 100644 --- a/Services/Search/classes/Lucene/class.ilLuceneSearchGUI.php +++ b/Services/Search/classes/Lucene/class.ilLuceneSearchGUI.php @@ -682,6 +682,7 @@ protected function parseCreationFilter() { $options = $this->search_cache->getCreationFilter(); + if(!$options['enabled']) { return ''; @@ -690,7 +691,7 @@ protected function parseCreationFilter() { case 1: - $limit = new ilDate(time(),IL_CAL_UNIX); + $limit = new ilDate($options['date'],IL_CAL_UNIX); switch($options['ontype']) {