Overview
Comment:preparedQuery s'attend à recevoir un tableau en argument
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 79b4d5c009a1d1e125d90fcbce3a760949ea1c2e
User & Date: bohwaz on 2017-08-03 04:34:21
Other Links: branch diff | manifest | tags
Context
2017-08-03
05:21
Ajout de règles de validation spécifiques check-in: ad273fa33f user: bohwaz tags: dev
04:34
preparedQuery s'attend à recevoir un tableau en argument check-in: 79b4d5c009 user: bohwaz tags: dev
04:33
Suppression des triggers et de la table recherche avant leur re-création pour que les nouveaux soient liés à la bonne table check-in: efe3311aa9 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Config.php from [b8b70c10db] to [4d3ec779c6].

195
196
197
198
199
200
201
202
203
204
205
206
207
208
209

    public function setVersion($version)
    {
        $this->config['version'] = $version;

        $db = DB::getInstance();
        $db->preparedQuery('INSERT OR REPLACE INTO config (cle, valeur) VALUES (?, ?);',
                'version', $version);

        return true;
    }

    public function set($key, $value)
    {
        if (!array_key_exists($key, $this->fields_types))







|







195
196
197
198
199
200
201
202
203
204
205
206
207
208
209

    public function setVersion($version)
    {
        $this->config['version'] = $version;

        $db = DB::getInstance();
        $db->preparedQuery('INSERT OR REPLACE INTO config (cle, valeur) VALUES (?, ?);',
                ['version', $version]);

        return true;
    }

    public function set($key, $value)
    {
        if (!array_key_exists($key, $this->fields_types))