From d4d68e0ce4caeac0b5fe24afe8a631fec664dc04 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 6 Jul 2015 13:49:52 +0000 Subject: [PATCH] (legacy) some more isset issues --- src/etc/inc/auth.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 6df658926..652b13132 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -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) {