aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-07-06 11:05:22 +0000
committerMario <mario@mariovavti.com>2024-07-06 11:05:22 +0000
commit45275910e606a02b12393714ea3b0409da440d61 (patch)
tree10b2d173d58cb930f8df28fe75af73dd4974c08c /include/security.php
parent0c1d0f7498661fb34dcca6f3c6566e757af310a7 (diff)
parentc04e781926a78e514cdf211fa24930a331149072 (diff)
downloadvolse-hubzilla-master.tar.gz
volse-hubzilla-master.tar.bz2
volse-hubzilla-master.zip
Merge branch '9.2RC'master
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/security.php b/include/security.php
index b3e45742e..545788bcd 100644
--- a/include/security.php
+++ b/include/security.php
@@ -5,8 +5,10 @@
* @brief Some security related functions.
*/
+use Zotlabs\Lib\Config;
+
/**
- * @param int $user_record The account_id
+ * @param array $user_record The account record
* @param array $channel
* @param bool $login_initial default false
* @param bool $interactive default false
@@ -872,7 +874,7 @@ function stream_perms_xchans($perms = NULL) {
*/
function zarIsDuty($wd=NULL, $hhmm=NULL, $op='isOpen') {
- $isduty = get_config('system', 'register_duty_jso');
+ $isduty = Config::Get('system', 'register_duty_jso');
if (!$isduty)
return (bool)false;
@@ -906,7 +908,6 @@ function zarIsDuty($wd=NULL, $hhmm=NULL, $op='isOpen') {
}
}
return $dutyis;
- break;
case 'nextOpen':
/**
@@ -951,7 +952,6 @@ function zarIsDuty($wd=NULL, $hhmm=NULL, $op='isOpen') {
}
}
return $is1; // false or array
- break;
default:
//