mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 05:58:46 +02:00
* better comparison
This commit is contained in:
@@ -164,17 +164,13 @@ class EventService
|
||||
$aSrcEvent = array();
|
||||
}
|
||||
|
||||
foreach ($aSrcRegistered as $sSrcRegistered)
|
||||
{
|
||||
foreach ($aSrcEvent as $sSrcEvent)
|
||||
{
|
||||
if ($sSrcRegistered == $sSrcEvent)
|
||||
{
|
||||
// sources matches
|
||||
return true;
|
||||
}
|
||||
foreach ($aSrcEvent as $sSrcEvent) {
|
||||
if (in_array($sSrcEvent, $aSrcRegistered)) {
|
||||
// sources matches
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// no match
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user