diff options
author | friendica <info@friendica.com> | 2013-12-11 19:56:57 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-11 19:56:57 -0800 |
commit | 18f0ab2605790f616ffd9b7a988e8dbdb10a0157 (patch) | |
tree | 99d71c0562d6ada380bc3c7cc7c6573134e778fa /include | |
parent | b4e1e8a4a43721d0134e41944afaa9f45bcd8aa8 (diff) | |
download | volse-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.php | 5 |
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'), |