Overview
SHA1:7d0a603b6fd45a44c46fc63748e8fbc65b87b0b9
Date: 2018-05-02 17:59:00
User: bohwaz
Comment:DB::get renvoie un objet, non un tableau
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-05-10
10:53
[0de2c604e1] Supprimer seulement quand le fichier existe (erreur rare d'accès concurrents) (user: bohwaz, tags: trunk)
2018-05-02
17:59
[7d0a603b6f] DB::get renvoie un objet, non un tableau (user: bohwaz, tags: trunk, stable)
2018-04-29
09:15
[7939e2b2fe] Fix typo (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
357
358
359
360
361
362
363
364
	/**
	 * 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));

		$missing = array_diff($system, $installed);

		if (count($missing) == 0)
		{
			return true;
		}

		foreach ($missing as $plugin)







>
>
>
>
>
>



|







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)