Fix: date
This commit is contained in:
parent
815f43904d
commit
f345e43dad
@ -321,7 +321,7 @@ print '</tr>'."\n";
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'>'."\n";
|
||||
print '<td style="padding:5px;">'.$langs->trans('LastUpdateCP').'</td>'."\n";
|
||||
print '<td style="padding:5px;"><input class="flat" type="text" name="lastUpdate" value="'.date('d-m-Y à H:i:s',$cp->getConfCP('lastUpdate')).'" disabled="disabled"/></td>'."\n";
|
||||
print '<td style="padding:5px;"><input class="flat" type="text" name="lastUpdate" value="'.dol_print_date($db->jdate($cp->getConfCP('lastUpdate')),'dayhour','tzuser').'" disabled="disabled"/></td>'."\n";
|
||||
print '</tr>'."\n";
|
||||
|
||||
print '</tbody>'."\n";
|
||||
|
||||
@ -50,12 +50,16 @@ $sql.= " WHERE name = 'userGroup'";
|
||||
$result = $db->query($sql);
|
||||
$obj = $db->fetch_object($result);
|
||||
|
||||
if ($obj->value == NULL)
|
||||
if ($obj->value == null)
|
||||
{
|
||||
llxHeader('',$langs->trans('CPTitreMenu'));
|
||||
print '<div class="tabBar">';
|
||||
print '<span style="color: #FF0000;">'.$langs->trans('NotConfigModCP').'</span>';
|
||||
print '</div>';
|
||||
|
||||
$langs->load("errors");
|
||||
$warnpicto=img_error($langs->trans("WarningMandatorySetupNotComplete"));
|
||||
print '<div class="tabBar">';
|
||||
print $warnpicto.' '.$langs->trans("NotConfigModCP");
|
||||
print '</div>';
|
||||
|
||||
llxFooter();
|
||||
exit();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user