diff --git a/administrator/components/com_config/model/application.php b/administrator/components/com_config/model/application.php
index 13ae11b23d387..fbb0babe49ec9 100644
--- a/administrator/components/com_config/model/application.php
+++ b/administrator/components/com_config/model/application.php
@@ -422,7 +422,7 @@ public function storePermissions($permission)
$result = $this->db->execute();
- return $result;
+ return (bool) $result;
}
}
catch (Exception $e)
diff --git a/administrator/components/com_finder/models/index.php b/administrator/components/com_finder/models/index.php
index aee121c659b84..903e14822259b 100644
--- a/administrator/components/com_finder/models/index.php
+++ b/administrator/components/com_finder/models/index.php
@@ -194,11 +194,20 @@ protected function getListQuery()
$query->where('l.published = ' . (int) $this->getState('filter.state'));
}
- // Check the search phrase.
+ // Check the search phrase.
if ($this->getState('filter.search') != '')
{
$search = $db->quote('%' . str_replace(' ', '%', $db->escape(trim($this->getState('filter.search')), true) . '%'));
- $query->where('l.title LIKE ' . $search . ' OR l.url LIKE ' . $search . ' OR l.indexdate LIKE ' . $search);
+
+ // Do not filter by indexdate if $search contains non-ascii characters
+ if (preg_match('/[^\x00-\x7F]/', $search))
+ {
+ $query->where('l.title LIKE ' . $search . ' OR l.url LIKE ' . $search);
+ }
+ else
+ {
+ $query->where('l.title LIKE ' . $search . ' OR l.url LIKE ' . $search . ' OR l.indexdate LIKE ' . $search);
+ }
}
// Handle the list ordering.
diff --git a/administrator/components/com_finder/views/index/tmpl/default.php b/administrator/components/com_finder/views/index/tmpl/default.php
index e41b446a8c8e1..d9ced32826403 100644
--- a/administrator/components/com_finder/views/index/tmpl/default.php
+++ b/administrator/components/com_finder/views/index/tmpl/default.php
@@ -113,7 +113,7 @@
published, $i, 'index.', $canChange, 'cb'); ?>
|
-
+ |
|