aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-11 19:56:57 -0800
committerfriendica <info@friendica.com>2013-12-11 19:56:57 -0800
commit18f0ab2605790f616ffd9b7a988e8dbdb10a0157 (patch)
tree99d71c0562d6ada380bc3c7cc7c6573134e778fa /include
parentb4e1e8a4a43721d0134e41944afaa9f45bcd8aa8 (diff)
downloadvolse-hubzilla-18f0ab2605790f616ffd9b7a988e8dbdb10a0157.tar.gz
volse-hubzilla-18f0ab2605790f616ffd9b7a988e8dbdb10a0157.tar.bz2
volse-hubzilla-18f0ab2605790f616ffd9b7a988e8dbdb10a0157.zip
cmax wasn't defaulting correctly
Diffstat (limited to 'include')
-rw-r--r--include/widgets.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 680c00df2..495ce74aa 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -341,10 +341,13 @@ function widget_affinity($arr) {
if(! local_user())
return '';
+ $cmin = ((x($_REQUEST,'cmin')) ? intval($_REQUEST['cmin']) : 0);
+ $cmax = ((x($_REQUEST,'cmax')) ? intval($_REQUEST['cmax']) : 99);
+
if(feature_enabled(local_user(),'affinity')) {
$tpl = get_markup_template('main_slider.tpl');
$x = replace_macros($tpl,array(
- '$val' => intval($_REQUEST['cmin']) . ';' . intval($_REQUEST['cmax']),
+ '$val' => $cmin . ';' . $cmax,
'$refresh' => t('Refresh'),
'$me' => t('Me'),
'$intimate' => t('Best Friends'),