Overview
SHA1:dfb7954c917d3b814098622b8e28490d65846c43
Date: 2013-10-01 02:26:49
User: bohwaz
Comment:Merge [464b2f5d24] correction évaluation entrée
Timelines: family | ancestors | descendants | both | stable | 0.5.9
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
  • branch=trunk inherited from [e5099a03d9]
  • sym-0.5.9
  • sym-stable
Context
2016-02-20
12:39
[6659412978] Merge old trunk diversion, as noticed by latest fossil update (user: bohwaz, tags: trunk)
2013-10-01
02:26
[dfb7954c91] Merge [464b2f5d24] correction évaluation entrée (user: bohwaz, tags: stable, 0.5.9)
2013-09-29
11:50
[fc0e512052] Correction pour les sous-appels de la fonction + suppression bidouille instructions sqlite3 (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.');
            }