mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 16:48:42 +02:00
Fix UIblock class extending interface collection
This commit is contained in:
@@ -75,7 +75,7 @@ class UIBlockExtension extends AbstractExtension
|
||||
$aClassMap = array_merge($aClassMap, $aCurrentClasses);
|
||||
|
||||
foreach ($aClassMap as $sPHPClass) {
|
||||
if (strpos($sPHPClass, 'UIBlockFactory')) {
|
||||
if (strpos($sPHPClass, 'UIBlockFactory') !== false) {
|
||||
try {
|
||||
$oRefClass = new ReflectionClass($sPHPClass);
|
||||
if ($oRefClass->implementsInterface($sInterface) && $oRefClass->isInstantiable()) {
|
||||
|
||||
Reference in New Issue
Block a user