diff --git a/modules/mod_related_items/mod_related_items.xml b/modules/mod_related_items/mod_related_items.xml
index 676a49b1f51ba..ba567538a83a0 100644
--- a/modules/mod_related_items/mod_related_items.xml
+++ b/modules/mod_related_items/mod_related_items.xml
@@ -29,6 +29,7 @@
description="MOD_RELATED_FIELD_SHOWDATE_DESC"
class="btn-group btn-group-yesno"
default="0"
+ filter="integer"
>
@@ -40,6 +41,7 @@
label="MOD_RELATED_FIELD_MAX_LABEL"
description="MOD_RELATED_FIELD_MAX_DESC"
default="5"
+ filter="integer"
/>
diff --git a/modules/mod_search/mod_search.xml b/modules/mod_search/mod_search.xml
index 2e879a3a2a940..f9df2a0521d9a 100644
--- a/modules/mod_search/mod_search.xml
+++ b/modules/mod_search/mod_search.xml
@@ -34,6 +34,7 @@
type="number"
label="MOD_SEARCH_FIELD_BOXWIDTH_LABEL"
description="MOD_SEARCH_FIELD_BOXWIDTH_DESC"
+ filter="integer"
/>
@@ -75,6 +77,7 @@
label="MOD_SEARCH_FIELD_IMAGEBUTTON_LABEL"
description="MOD_SEARCH_FIELD_IMAGEBUTTON_DESC"
default="0"
+ filter="integer"
class="btn-group btn-group-yesno"
showon="button:1"
>
@@ -97,6 +100,7 @@
description="MOD_SEARCH_FIELD_OPENSEARCH_DESC"
class="btn-group btn-group-yesno"
default="1"
+ filter="integer"
>
@@ -116,6 +120,7 @@
label="MOD_SEARCH_FIELD_SETITEMID_LABEL"
description="MOD_SEARCH_FIELD_SETITEMID_DESC"
default="0"
+ filter="integer"
>
@@ -142,6 +147,7 @@
label="COM_MODULES_FIELD_CACHING_LABEL"
description="COM_MODULES_FIELD_CACHING_DESC"
default="1"
+ filter="integer"
>
@@ -153,6 +159,7 @@
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
description="COM_MODULES_FIELD_CACHE_TIME_DESC"
default="900"
+ filter="integer"
/>
getQuery(true);
- $serverinfo = $params->get('serverinfo');
- $siteinfo = $params->get('siteinfo');
- $counter = $params->get('counter');
- $increase = $params->get('increase');
+ $serverinfo = $params->get('serverinfo', 0);
+ $siteinfo = $params->get('siteinfo', 0);
+ $counter = $params->get('counter', 0);
+ $increase = $params->get('increase', 0);
$i = 0;
diff --git a/modules/mod_stats/mod_stats.php b/modules/mod_stats/mod_stats.php
index 65313d5d1db9c..01e5c78f71a38 100644
--- a/modules/mod_stats/mod_stats.php
+++ b/modules/mod_stats/mod_stats.php
@@ -12,8 +12,8 @@
// Include the statistics functions only once
JLoader::register('ModStatsHelper', __DIR__ . '/helper.php');
-$serverinfo = $params->get('serverinfo');
-$siteinfo = $params->get('siteinfo');
+$serverinfo = $params->get('serverinfo', 0);
+$siteinfo = $params->get('siteinfo', 0);
$list = ModStatsHelper::getList($params);
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');
diff --git a/modules/mod_stats/mod_stats.xml b/modules/mod_stats/mod_stats.xml
index 2a1281a5ec5cc..421a33ab9dc93 100644
--- a/modules/mod_stats/mod_stats.xml
+++ b/modules/mod_stats/mod_stats.xml
@@ -29,6 +29,7 @@
description="MOD_STATS_FIELD_SERVERINFO_DESC"
class="btn-group btn-group-yesno"
default="0"
+ filter="integer"
>
@@ -41,6 +42,7 @@
description="MOD_STATS_FIELD_SITEINFO_DESC"
class="btn-group btn-group-yesno"
default="0"
+ filter="integer"
>
@@ -53,6 +55,7 @@
description="MOD_STATS_FIELD_COUNTER_DESC"
class="btn-group btn-group-yesno"
default="0"
+ filter="integer"
>
@@ -64,6 +67,7 @@
label="MOD_STATS_FIELD_INCREASECOUNTER_LABEL"
description="MOD_STATS_FIELD_INCREASECOUNTER_DESC"
default="0"
+ filter="integer"
/>
diff --git a/modules/mod_users_latest/helper.php b/modules/mod_users_latest/helper.php
index 263c297165b0d..144ff78ee03cf 100644
--- a/modules/mod_users_latest/helper.php
+++ b/modules/mod_users_latest/helper.php
@@ -49,7 +49,7 @@ public static function getUsers($params)
->where('ug.id <> 1');
}
- $db->setQuery($query, 0, $params->get('shownumber'));
+ $db->setQuery($query, 0, $params->get('shownumber', 5));
try
{
diff --git a/modules/mod_users_latest/mod_users_latest.xml b/modules/mod_users_latest/mod_users_latest.xml
index 7299144c3dffe..2304a834217a5 100644
--- a/modules/mod_users_latest/mod_users_latest.xml
+++ b/modules/mod_users_latest/mod_users_latest.xml
@@ -28,6 +28,7 @@
label="MOD_USERS_LATEST_FIELD_NUMBER_LABEL"
description="MOD_USERS_LATEST_FIELD_NUMBER_DESC"
default="5"
+ filter="integer"
/>
@@ -64,6 +66,7 @@
label="COM_MODULES_FIELD_CACHING_LABEL"
description="COM_MODULES_FIELD_CACHING_DESC"
default="1"
+ filter="integer"
>
@@ -75,6 +78,7 @@
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
description="COM_MODULES_FIELD_CACHE_TIME_DESC"
default="900"
+ filter="integer"
/>
@@ -41,6 +42,7 @@
description="MOD_WHOSONLINE_FIELD_FILTER_GROUPS_DESC"
class="btn-group btn-group-yesno"
default="0"
+ filter="integer"
>
@@ -68,6 +70,7 @@
label="COM_MODULES_FIELD_CACHING_LABEL"
description="COM_MODULES_FIELD_CACHING_DESC"
default="0"
+ filter="integer"
>
@@ -78,6 +81,7 @@
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
description="COM_MODULES_FIELD_CACHE_TIME_DESC"
default="900"
+ filter="integer"
/>
diff --git a/modules/mod_whosonline/tmpl/default.php b/modules/mod_whosonline/tmpl/default.php
index 41bb90bfa30bf..c2756b410f269 100644
--- a/modules/mod_whosonline/tmpl/default.php
+++ b/modules/mod_whosonline/tmpl/default.php
@@ -17,7 +17,7 @@
0) && count($names)) : ?>
- get('filter_groups')) : ?>
+ get('filter_groups', 0)) : ?>
diff --git a/modules/mod_wrapper/helper.php b/modules/mod_wrapper/helper.php
index 37e9fb7c3c075..2c0582a04e15b 100644
--- a/modules/mod_wrapper/helper.php
+++ b/modules/mod_wrapper/helper.php
@@ -30,9 +30,9 @@ public static function getParams(&$params)
$params->def('url', '');
$params->def('scrolling', 'auto');
$params->def('height', '200');
- $params->def('height_auto', '0');
+ $params->def('height_auto', 0);
$params->def('width', '100%');
- $params->def('add', '1');
+ $params->def('add', 1);
$params->def('name', 'wrapper');
$url = $params->get('url');
diff --git a/modules/mod_wrapper/mod_wrapper.xml b/modules/mod_wrapper/mod_wrapper.xml
index 3c3639956e627..4cf27f729f147 100644
--- a/modules/mod_wrapper/mod_wrapper.xml
+++ b/modules/mod_wrapper/mod_wrapper.xml
@@ -38,6 +38,7 @@
description="MOD_WRAPPER_FIELD_ADD_DESC"
class="btn-group btn-group-yesno"
default="1"
+ filter="integer"
>
@@ -80,6 +81,7 @@
description="MOD_WRAPPER_FIELD_AUTOHEIGHT_DESC"
class="btn-group btn-group-yesno"
default="1"
+ filter="integer"
>
@@ -92,6 +94,7 @@
description="MOD_WRAPPER_FIELD_FRAME_DESC"
class="btn-group btn-group-yesno"
default="1"
+ filter="integer"
>
@@ -127,6 +130,7 @@
label="COM_MODULES_FIELD_CACHING_LABEL"
description="COM_MODULES_FIELD_CACHING_DESC"
default="1"
+ filter="integer"
>
@@ -138,6 +142,7 @@
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
description="COM_MODULES_FIELD_CACHE_TIME_DESC"
default="900"
+ filter="integer"
/>