mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(legacy) some more isset issues
This commit is contained in:
parent
b19a6f52c8
commit
d4d68e0ce4
@ -457,7 +457,7 @@ function local_user_set(&$user)
|
||||
@chgrp($user_home, $user_group);
|
||||
|
||||
/* write out ssh authorized key file */
|
||||
if ($user['authorizedkeys']) {
|
||||
if (isset($user['authorizedkeys'])) {
|
||||
@mkdir("{$user_home}/.ssh", 0700);
|
||||
@chown("{$user_home}/.ssh", $user_name);
|
||||
$keys = base64_decode($user['authorizedkeys']);
|
||||
@ -1188,8 +1188,9 @@ function radius_backed($username, $passwd, $authcfg, &$attributes = array())
|
||||
|
||||
function get_user_expiration_date($username) {
|
||||
$user = getUserEntry($username);
|
||||
if ($user['expires'])
|
||||
if (isset($user['expires'])) {
|
||||
return $user['expires'];
|
||||
}
|
||||
}
|
||||
|
||||
function is_account_expired($username) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user