diff --git a/src/usr/local/www/widgets/widgets/ipsec.widget.php b/src/usr/local/www/widgets/widgets/ipsec.widget.php index 90ab5aa151..ec9cf2fa3d 100644 --- a/src/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/src/usr/local/www/widgets/widgets/ipsec.widget.php @@ -113,7 +113,8 @@ if ($_REQUEST && $_REQUEST['ajax']) { foreach ($ipsec_status as $id => $ikesa) { if (isset($ikesa['child-sas'])) { foreach ($ikesa['child-sas'] as $childid => $childsa) { - if ($ikeid == $childid) { + list($childcid, $childsid) = explode('-', $childid, 2); + if ($ikeid == $childcid) { $found = true; break; }