Skip to content

Commit

Permalink
Uniformize code
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanjo Menent committed Sep 2, 2011
1 parent 25fe3d4 commit 5dad87a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htdocs/admin/agenda.php
Expand Up @@ -79,9 +79,12 @@
//print "param=".$param." - ".$_POST[$param];
if (! empty($_POST[$param])) $res = dolibarr_set_const($db,$param,$_POST[$param],'chaine',0,'',$conf->entity);
else $res = dolibarr_del_const($db,$param,$conf->entity);
if (! $res > 0) $error++;
}

$db->commit();

if (! $res > 0) $error++;

if (! $error)
{
$db->commit();
Expand Down

0 comments on commit 5dad87a

Please sign in to comment.