Overview
SHA1:eb64c8f63650a1d2642322e1c3760fcd19a9ed8c
Date: 2013-03-27 23:25:03
User: bohwaz
Comment:Fix [ff2b665093] namespaces non préfixés
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
References
2013-03-27
23:25 • Fixed ticket [ff2b665093]: Version 0.5 : Erreur sur mise à jour d'adhesion plus 3 other changes (user: bohwaz) [details]
Tags And Properties
Context
2013-04-07
04:22
[a626df96e4] Release 0.5.1 pour correction de bug (user: bohwaz, tags: trunk, 0.5.1)
2013-03-27
23:25
[eb64c8f636] Fix [ff2b665093] namespaces non préfixés (user: bohwaz, tags: trunk)
2013-03-15
10:46
[c797d13294] Ignorer les *.sqlite (user: bohwaz, tags: trunk)
Changes

Modified include/class.membres.php from [b94d4fbb71] to [e9fd700c86].

600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616

        return true;
    }

    static public function updateCotisation($id, $date)
    {
        if (preg_match('!^\d{2}/\d{2}/\d{4}$!', $date))
            $date = \DateTime::createFromFormat('d/m/Y', $date, new DateTimeZone('UTC'));
        elseif (preg_match('!^\d{4}-\d{2}-\d{2}$!', $date))
            $date = \DateTime::createFromFormat('Y-m-d', $date, new DateTimeZone('UTC'));
        else
            throw new UserException('Format de date invalide : '.$date);

        $db = DB::getInstance();
        return $db->simpleUpdate('membres',
            array('date_cotisation' => $date->format('Y-m-d H:i:s')),
            'id = '.(int)$id







|

|







600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616

        return true;
    }

    static public function updateCotisation($id, $date)
    {
        if (preg_match('!^\d{2}/\d{2}/\d{4}$!', $date))
            $date = \DateTime::createFromFormat('d/m/Y', $date, new \DateTimeZone('UTC'));
        elseif (preg_match('!^\d{4}-\d{2}-\d{2}$!', $date))
            $date = \DateTime::createFromFormat('Y-m-d', $date, new \DateTimeZone('UTC'));
        else
            throw new UserException('Format de date invalide : '.$date);

        $db = DB::getInstance();
        return $db->simpleUpdate('membres',
            array('date_cotisation' => $date->format('Y-m-d H:i:s')),
            'id = '.(int)$id