From a317c54b66522267b5362bc447de514ac03991b5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 13 Apr 2018 09:39:02 +0200 Subject: [PATCH] Fix: missing right parameter --- htdocs/user/card.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/user/card.php b/htdocs/user/card.php index ecfb5de2436..15c8df0d2b9 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -819,7 +819,7 @@ if ($action == 'create' || $action == 'adduserldap') } } - // Other form for add user to group + // Other form for user password $parameters=array('valuetoshow' => $valuetoshow, 'password' => $password); $reshook=$hookmanager->executeHooks('printUserPasswordField',$parameters,$object,$action); // Note that $action and $object may have been modified by hook if ($reshook > 0) $valuetoshow=$hookmanager->resPrint; // to replace @@ -828,7 +828,7 @@ if ($action == 'create' || $action == 'adduserldap') print $valuetoshow; print ''; - if(! empty($conf->api->enabled)) + if (! empty($conf->api->enabled)) { // API key $generated_api_key = ''; @@ -1371,7 +1371,7 @@ else } } - // Other form for add user to group + // Other form for user password $parameters=array('valuetoshow' => $valuetoshow); $reshook=$hookmanager->executeHooks('printUserPasswordField',$parameters,$object,$action); // Note that $action and $object may have been modified by hook if ($reshook > 0) $valuetoshow=$hookmanager->resPrint; // to replace @@ -1938,8 +1938,8 @@ else } } - // Other form for add user to group - $parameters=array('valuetoshow' => $valuetoshow); + // Other form for user password + $parameters=array('valuetoshow' => $valuetoshow, 'caneditpassword' => $caneditpassword); $reshook=$hookmanager->executeHooks('printUserPasswordField',$parameters,$object,$action); // Note that $action and $object may have been modified by hook if ($reshook > 0) $valuetoshow=$hookmanager->resPrint; // to replace else $valuetoshow.=$hookmanager->resPrint; // to add