Overview
Comment:Fix [ff2b665093] namespaces non préfixés
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: eb64c8f63650a1d2642322e1c3760fcd19a9ed8c
User & Date: bohwaz on 2013-03-27 23:25:03
Other Links: manifest | tags
References
2013-03-27
23:25 Fixed ticket [ff2b665093]: Version 0.5 : Erreur sur mise à jour d'adhesion plus 3 other changes artifact: 4189b2cb27 user: bohwaz
Context
2013-04-07
04:22
Release 0.5.1 pour correction de bug check-in: a626df96e4 user: bohwaz tags: trunk, 0.5.1
2013-03-27
23:25
Fix [ff2b665093] namespaces non préfixés check-in: eb64c8f636 user: bohwaz tags: trunk
2013-03-15
10:46
Ignorer les *.sqlite check-in: c797d13294 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