Skip to content
Permalink
Browse files

Orion 15.6.0 plat 10072 fixing filterEntriesByPartnerOrKalturaNetwork (

…#8735)

* Orion-15.6.0-PLAT-10072-filterEntriesByPartnerOrKalturaNetwork when single element key isn't 0

* Orion-15.6.0-PLAT-10072-Fixing-filterEntriesByPartnerOrKalturaNetwork when it recieve empty entry
  • Loading branch information...
ZurKaltura committed Sep 1, 2019
1 parent 465940b commit 5f55c32d6ed3f6793d5662b7f0d2540d97a1e735
Showing with 6 additions and 0 deletions.
  1. +6 −0 alpha/lib/model/entryPeer.php
@@ -832,8 +832,14 @@ public static function addValidatedEntry($entryId)
self::$validatedEntries[] = $entryId;
}
public static function filterEmptyEntry($entryId)
{
return !empty($entryId);
}
public static function filterEntriesByPartnerOrKalturaNetwork(array $entryIds, $partnerId)
{
$entryIds = array_filter($entryIds, ['entryPeer', 'filterEmptyEntry']);
$validatedEntries = array_intersect($entryIds, self::$validatedEntries);
$entryIds = array_diff($entryIds, self::$validatedEntries);

0 comments on commit 5f55c32

Please sign in to comment.
You can’t perform that action at this time.