Overview
SHA1:3c21c0fff53bdb54e22fe6ff88a4ab7cf228f8d3
Date: 2018-05-22 14:16:00
User: bohwaz
Comment:Fix vérification plugins installés
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-05-22
14:19
[d63dec38b5] Version stable 0.8.4 (user: bohwaz, tags: trunk, stable, 0.8.4)
14:16
[3c21c0fff5] Fix vérification plugins installés (user: bohwaz, tags: trunk, stable)
14:11
[b8394efa7e] Corrige souci de namespace (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Plugin.php from [03b418ff26] to [9c18ecf730].

354
355
356
357
358
359
360
361
362
363
364
365
366
367
368

		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;
		}







|







354
355
356
357
358
359
360
361
362
363
364
365
366
367
368

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

		$db = DB::getInstance();
		$installed = $db->getAssoc('SELECT id, id FROM plugins WHERE ' . $db->where('id', 'IN', $system));

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

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