Merge pull request #2533 from frederic34/patch-7

Travis Fix don.class.php
This commit is contained in:
Laurent Destailleur 2015-04-02 19:02:34 +02:00
commit 9b99ef9351

View File

@ -709,13 +709,13 @@ class Don extends CommonObject
* Classify the donation as paid, the donation was received * Classify the donation as paid, the donation was received
* *
* @param int $id id of donation * @param int $id id of donation
* @param int $modepayment mode de payment * @param int $modepayment mode of payment
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
*/ */
function set_paid($id, $modepaiement='') function set_paid($id, $modepayment='')
{ {
$sql = "UPDATE ".MAIN_DB_PREFIX."don SET fk_statut = 2"; $sql = "UPDATE ".MAIN_DB_PREFIX."don SET fk_statut = 2";
if ($modepaiement) if ($modepayment)
{ {
$sql .= ", fk_payment=$modepayment"; $sql .= ", fk_payment=$modepayment";
} }