Overview
Comment: | DB::get renvoie un objet, non un tableau |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
7d0a603b6fd45a44c46fc63748e8fbc6 |
User & Date: | bohwaz on 2018-05-02 17:59:00 |
Other Links: | manifest | tags |
Context
2018-05-10
| ||
10:53 | Supprimer seulement quand le fichier existe (erreur rare d'accès concurrents) check-in: 0de2c604e1 user: bohwaz tags: trunk | |
2018-05-02
| ||
17:59 | DB::get renvoie un objet, non un tableau check-in: 7d0a603b6f user: bohwaz tags: trunk, stable | |
2018-04-29
| ||
09:15 | Fix typo check-in: 7939e2b2fe user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Plugin.php from [7158f0977e] to [03b418ff26].
︙ | ︙ | |||
347 348 349 350 351 352 353 354 355 356 | /** * Vérifie que les plugins système sont bien installés et sinon les réinstalle * @return void */ static public function checkAndInstallSystemPlugins() { $system = explode(',', PLUGINS_SYSTEM); $db = DB::getInstance(); $installed = $db->get('SELECT id FROM plugins WHERE ' . $db->where('id', 'IN', $system)); | > > > > > > | | 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | /** * Vérifie que les plugins système sont bien installés et sinon les réinstalle * @return void */ static public function checkAndInstallSystemPlugins() { $system = explode(',', PLUGINS_SYSTEM); if (count($system) == 0) { return true; } $db = DB::getInstance(); $installed = $db->get('SELECT id FROM plugins WHERE ' . $db->where('id', 'IN', $system)); $missing = array_diff($system, (array) $installed); if (count($missing) == 0) { return true; } foreach ($missing as $plugin) |
︙ | ︙ |