From de7cb6d6ad7902f28e63759350613ed4b30a055b Mon Sep 17 00:00:00 2001 From: "DM42.Net (Matt Dent)" Date: Fri, 14 Dec 2018 13:59:41 -0500 Subject: Fix syntax error --- Zotlabs/Module/Network.php | 2 +- Zotlabs/Widget/Affinity.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index 894e5c8b6..d5cc06d09 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -133,7 +133,7 @@ class Network extends \Zotlabs\Web\Controller { $deftag = ''; if (feature_enabled(local_channel(),'affinity')) { - $affinity_locked = int(get_pconfig(local_channel(),'affinity','lock',1)); + $affinity_locked = intval(get_pconfig(local_channel(),'affinity','lock',1)); if ($affinity_locked) { set_pconfig(local_channel(),'affinity','cmin',$cmin); set_pconfig(local_channel(),'affinity','cmax',$cmax); diff --git a/Zotlabs/Widget/Affinity.php b/Zotlabs/Widget/Affinity.php index e9dac6b27..28190e187 100644 --- a/Zotlabs/Widget/Affinity.php +++ b/Zotlabs/Widget/Affinity.php @@ -17,7 +17,7 @@ class Affinity { if(feature_enabled(local_channel(),'affinity')) { - $affinity_locked = int(get_pconfig(local_channel(),'affinity','lock',1)); + $affinity_locked = intval(get_pconfig(local_channel(),'affinity','lock',1)); if ($affinity_locked) { set_pconfig(local_channel(),'affinity','cmin',$cmin); set_pconfig(local_channel(),'affinity','cmax',$cmax); -- cgit v1.2.3