Overview
Comment:Merge [464b2f5d24] correction évaluation entrée
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | stable | 0.5.9
Files: files | file ages | folders
SHA1: dfb7954c917d3b814098622b8e28490d65846c43
User & Date: bohwaz on 2013-10-01 02:26:49
Other Links: manifest | tags
Context
2016-02-20
12:39
Merge old trunk diversion, as noticed by latest fossil update check-in: 6659412978 user: bohwaz tags: trunk
2013-10-01
02:26
Merge [464b2f5d24] correction évaluation entrée check-in: dfb7954c91 user: bohwaz tags: stable, 0.5.9
02:22
correction évaluation entrée check-in: 464b2f5d24 user: bohwaz tags: trunk
2013-09-29
11:50
Correction pour les sous-appels de la fonction + suppression bidouille instructions sqlite3 check-in: fc0e512052 user: bohwaz tags: stable, 0.5.9
Changes

Modified 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.');
            }