diff options
author | Mario <mario@mariovavti.com> | 2022-09-07 12:50:46 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-07 12:50:46 +0000 |
commit | fcfb9e975836c4abbbfd339d46bf8ea937747e57 (patch) | |
tree | bbe6a8f19831eba6f9488c8e26687362870e0021 /include/channel.php | |
parent | 9beee689ce5537d0b64f20ccfe461eeb7c41ffa8 (diff) | |
download | volse-hubzilla-fcfb9e975836c4abbbfd339d46bf8ea937747e57.tar.gz volse-hubzilla-fcfb9e975836c4abbbfd339d46bf8ea937747e57.tar.bz2 volse-hubzilla-fcfb9e975836c4abbbfd339d46bf8ea937747e57.zip |
fix random php warnings
Diffstat (limited to 'include/channel.php')
-rw-r--r-- | include/channel.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/channel.php b/include/channel.php index 4e84b1b32..0d02dff1e 100644 --- a/include/channel.php +++ b/include/channel.php @@ -2002,7 +2002,7 @@ function atoken_delete_and_sync($channel_id, $atoken_guid) { * @return int */ function get_theme_uid() { - $uid = (($_REQUEST['puid']) ? intval($_REQUEST['puid']) : 0); + $uid = $_REQUEST['puid'] ?? 0; if(local_channel()) { if((get_pconfig(local_channel(),'system','always_my_theme')) || (! $uid)) return local_channel(); @@ -2010,10 +2010,10 @@ function get_theme_uid() { if(! $uid) { $x = get_sys_channel(); if($x) - return $x['channel_id']; + return intval($x['channel_id']); } - return $uid; + return intval($uid); } /** |