diff --git a/htdocs/accountancy/class/accountancyaccount.class.php b/htdocs/accountancy/class/accountancyaccount.class.php index cd6b3af500d..dd757d5a816 100644 --- a/htdocs/accountancy/class/accountancyaccount.class.php +++ b/htdocs/accountancy/class/accountancyaccount.class.php @@ -40,21 +40,21 @@ class AccountancyAccount /** - * \brief Constructeur de la classe - * \param DB handler acces base de donnees - * \param id id compte (0 par defaut) + * Constructor + * + * @param $DoliDB $DB Database handler */ - function AccountancyAccount($DB, $id=0) + function AccountancyAccount($DB) { $this->db = $DB; - $this->id = $id ; } /** - * \brief Ins�re le compte en base - * \param user Utilisateur qui effectue l'insertion - * \return int <0 si ko, Id ligne ajout�e si ok + * Insert account into database + * + * @param User $user User making add + * @return int <0 if KO, Id line added if OK */ function create($user) { diff --git a/htdocs/admin/livraison.php b/htdocs/admin/livraison.php index 8e986327700..3d2d4ef62e9 100644 --- a/htdocs/admin/livraison.php +++ b/htdocs/admin/livraison.php @@ -108,9 +108,7 @@ if ($action == 'set') $sql.= ($label?"'".$db->escape($label)."'":'null').", "; $sql.= (! empty($scandir)?"'".$db->escape($scandir)."'":"null"); $sql.= ")"; - if ($db->query($sql)) - { - } + $resql=$db->query($sql); } if ($action == 'del') diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 8dafcfd9218..091be0c5e3c 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -208,9 +208,11 @@ if (($_POST['action'] == 'send' || $_POST['action'] == 'sendhtml') $body=make_substitutions($body,$substitutionarrayfortest); require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php"); - $mailfile = new CMailFile($subject, $sendto, $email_from, $body, - $filepath, $mimetype, $filename, - $sendtocc, $sendtoccc, $deliveryreceipt, $msgishtml, $errors_to); + $mailfile = new CMailFile( + $subject, $sendto, $email_from, $body, + $filepath, $mimetype, $filename, + $sendtocc, $sendtoccc, $deliveryreceipt, $msgishtml, $errors_to + ); $result=$mailfile->sendfile(); @@ -270,10 +272,10 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') { $html=new Form($db); - if ($conf->use_javascript_ajax) - { - print "\n".''."\n"; - } + print ''."\n"; + } print '