diff --git a/administrator/components/com_banners/config.xml b/administrator/components/com_banners/config.xml index 1e056e3777ec2..2c9f298c9523c 100644 --- a/administrator/components/com_banners/config.xml +++ b/administrator/components/com_banners/config.xml @@ -12,15 +12,15 @@ default="0" > + value="1">COM_BANNERS_FIELD_VALUE_UNLIMITED + value="2">COM_BANNERS_FIELD_VALUE_YEARLY + value="3">COM_BANNERS_FIELD_VALUE_MONTHLY + value="4">COM_BANNERS_FIELD_VALUE_WEEKLY + value="5">COM_BANNERS_FIELD_VALUE_DAILY - - - - - diff --git a/administrator/components/com_banners/models/forms/client.xml b/administrator/components/com_banners/models/forms/client.xml index a14cc0ac8bf21..0ff3a5bedb428 100644 --- a/administrator/components/com_banners/models/forms/client.xml +++ b/administrator/components/com_banners/models/forms/client.xml @@ -47,15 +47,15 @@ > - - - - - diff --git a/administrator/components/com_banners/models/forms/filter_clients.xml b/administrator/components/com_banners/models/forms/filter_clients.xml index 2609e159f3975..ad0ac39e0fcba 100644 --- a/administrator/components/com_banners/models/forms/filter_clients.xml +++ b/administrator/components/com_banners/models/forms/filter_clients.xml @@ -25,11 +25,11 @@ onchange="this.form.submit();" > - - - - - + + + + + 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'); ?> - +