aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Settings
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-07-11 16:11:52 +0200
committerMario Vavti <mario@mariovavti.com>2017-07-11 16:11:52 +0200
commit403e90861cccecc3179e380b084238e1294fe61e (patch)
treea14f7f3710f729fb91bc2242781cc7b2623b68aa /Zotlabs/Module/Settings
parent271ed82d0def7b658f074ada9adb1aaa51bdd507 (diff)
parent2d63bbb91e97d3a54440564620ef3093ecbe71fb (diff)
downloadvolse-hubzilla-403e90861cccecc3179e380b084238e1294fe61e.tar.gz
volse-hubzilla-403e90861cccecc3179e380b084238e1294fe61e.tar.bz2
volse-hubzilla-403e90861cccecc3179e380b084238e1294fe61e.zip
Merge red/master
Diffstat (limited to 'Zotlabs/Module/Settings')
-rw-r--r--Zotlabs/Module/Settings/Featured.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/Zotlabs/Module/Settings/Featured.php b/Zotlabs/Module/Settings/Featured.php
index 4885abd1d..ebe2996d3 100644
--- a/Zotlabs/Module/Settings/Featured.php
+++ b/Zotlabs/Module/Settings/Featured.php
@@ -10,14 +10,16 @@ class Featured {
call_hooks('feature_settings_post', $_POST);
- if(intval($_POST['affinity_cmax'])) {
- set_pconfig(local_channel(),'affinity','cmax',intval($_POST['affinity_cmax']));
- }
- if(intval($_POST['affinity_cmin'])) {
- set_pconfig(local_channel(),'affinity','cmin',intval($_POST['affinity_cmin']));
- }
- if(intval($_POST['affinity_cmax']) || intval($_POST['affinity_cmin'])) {
- info( t('Affinity Slider settings updated.') . EOL);
+ if($_POST['affinity_slider-submit']) {
+ if(intval($_POST['affinity_cmax'])) {
+ set_pconfig(local_channel(),'affinity','cmax',intval($_POST['affinity_cmax']));
+ }
+ if(intval($_POST['affinity_cmin'])) {
+ set_pconfig(local_channel(),'affinity','cmin',intval($_POST['affinity_cmin']));
+ }
+ if(intval($_POST['affinity_cmax']) || intval($_POST['affinity_cmin'])) {
+ info( t('Affinity Slider settings updated.') . EOL);
+ }
}
build_sync_packet();