Update peruser.php

This commit is contained in:
Laurent Destailleur 2021-08-28 17:39:23 +02:00 committed by GitHub
parent 601cc865fb
commit a5bb833a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -466,13 +466,11 @@ if (empty($reshook)) {
}
$newparam = '';
$newcardbutton = '';
if ($user->rights->agenda->myactions->create || $user->rights->agenda->allactions->create) {
$tmpforcreatebutton = dol_getdate(dol_now(), true);
if (empty($newparam)) {
$newparam = '';
}
$newparam .= '&month='.urlencode(str_pad($month, 2, "0", STR_PAD_LEFT)).'&year='.urlencode($tmpforcreatebutton['year']);
if ($begin_h !== '') {
$newparam .= '&begin_h='.urlencode($begin_h);