Overview
SHA1:464b2f5d24f555643e73a300fbaad85da062e7d0
Date: 2013-10-01 02:22:57
User: bohwaz
Comment:correction évaluation entrée
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
References
2013-10-01
02:26
[dfb7954c91] Merge [464b2f5d24] correction évaluation entrée (user: bohwaz, tags: stable, 0.5.9)
Tags And Properties
Context
2013-11-18
16:22
[19b35014ae] Correction schéma : les comptes ne sont pas des INT mais des TEXT (mais sqlite s'en fout, c'est juste pour rester logique) (user: bohwaz, tags: trunk)
2013-10-01
02:22
[464b2f5d24] correction évaluation entrée (user: bohwaz, tags: trunk)
2013-09-30
18:03
[d57ea72ca3] Empêcher de faire un opération avec compte débit = compte crédit (user: bohwaz, tags: trunk)
Changes

Modified src/include/class.db.php from [4856b84bc1] to [005fc59201].

152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
    public function simpleStatement($query, $args = array())
    {
        $statement = $this->prepare($query);
        $nb = $statement->paramCount();

        if (!empty($args))
        {
            if (count($args) == 1 && is_array($args[0]))
            {
                $args = $args[0];
            }
            
            if (count($args) != $nb)
            {
                throw new \LengthException('Only '.count($args).' arguments, but '.$nb.' are required by query.');
            }








|

|







152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
    public function simpleStatement($query, $args = array())
    {
        $statement = $this->prepare($query);
        $nb = $statement->paramCount();

        if (!empty($args))
        {
            if (is_array($args) && count($args) == 1 && is_array(current($args)))
            {
                $args = current($args);
            }
            
            if (count($args) != $nb)
            {
                throw new \LengthException('Only '.count($args).' arguments, but '.$nb.' are required by query.');
            }