Commit 511f241d authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor bug fix.

parent b19e5125
......@@ -562,7 +562,7 @@ if ((isset($password1) && strcmp($password1, "")) &&
"pswd_expires=$expires ".
"WHERE uid='$target_uid'");
if (HASREALACCOUNT($uid)) {
if (HASREALACCOUNT($uid) && HASREALACCOUNT($target_uid)) {
SUEXEC($uid, "nobody", "webtbacct passwd $target_uid", 1);
}
}
......@@ -634,7 +634,7 @@ if (strcmp($defaults[usr_name], $formfields[usr_name]) ||
#
# mkacct updates the user gecos
#
if (HASREALACCOUNT($uid)) {
if (HASREALACCOUNT($uid) && HASREALACCOUNT($target_uid)) {
SUEXEC($uid, "nobody", "webtbacct mod $target_uid", 1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment