Fixing style errors.
This commit is contained in:
parent
155aeb6213
commit
487876101f
@ -264,7 +264,7 @@ if (isset($_POST["ajoutercolonne"]) && $object->format == "D") {
|
||||
// Delete line
|
||||
for ($i = 0; $i < $nblines; $i++) {
|
||||
if (GETPOST("effaceligne".$i) || GETPOST("effaceligne".$i."_x") || GETPOST("effaceligne".$i.".x")) { // effacelignei for chrome, effacelignei_x for firefox
|
||||
// Security check
|
||||
// Security check
|
||||
if (!$user->rights->opensurvey->write) {
|
||||
accessforbidden();
|
||||
}
|
||||
@ -299,7 +299,7 @@ for ($i = 0; $i < $nblines; $i++) {
|
||||
for ($i = 0; $i < $nbcolonnes; $i++) {
|
||||
if ((GETPOST("effacecolonne".$i) || GETPOST("effacecolonne".$i."_x") || GETPOST("effacecolonne".$i.".x"))
|
||||
&& $nbcolonnes > 1) { // effacecolonnei for chrome, effacecolonnei_x for firefox
|
||||
// Security check
|
||||
// Security check
|
||||
if (!$user->rights->opensurvey->write) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ if (!empty($creation_sondage_date) || !empty($creation_sondage_autre)) {
|
||||
$champdatefin = dol_mktime(0, 0, 0, GETPOST('champdatefinmonth'), GETPOST('champdatefinday'), GETPOST('champdatefinyear'));
|
||||
|
||||
if ($champdatefin && ($champdatefin > 0)) { // A date was provided
|
||||
// Expire date is not before today
|
||||
// Expire date is not before today
|
||||
if ($champdatefin >= dol_now()) {
|
||||
$testdate = true;
|
||||
$_SESSION['champdatefin'] = dol_print_date($champdatefin, 'dayrfc');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user