From 786eaeaab0f8a634e57862c7d5a70ec96f40330a Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Wed, 15 May 2019 22:09:22 +0300 Subject: [PATCH] Fix id prefix for consistency An attempt to fix issue #45 (`uniqid` has microsecond precision, so it is actually possible to get identical `id`, maybe it would be better to use `mt_rand` instead of `uniqid` to avoid conflicts at all) --- administrator/components/com_jedchecker/models/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_jedchecker/models/report.php b/administrator/components/com_jedchecker/models/report.php index 31e071a..dc6d693 100644 --- a/administrator/components/com_jedchecker/models/report.php +++ b/administrator/components/com_jedchecker/models/report.php @@ -217,7 +217,7 @@ class JEDcheckerReport extends JObject if ($compat_count > 0) { - $collapseID = uniqid('warning_'); + $collapseID = uniqid('compat_'); $html[] = '
' . $compat_count . ' ' . JText::_('COM_JEDCHECKER_COMPAT_ISSUES') . ' - Click to View Details
'; $html[] = '