AntonLV %!s(int64=5) %!d(string=hai) anos
pai
achega
3a50e739ed
Modificáronse 1 ficheiros con 8 adicións e 6 borrados
  1. 8 6
      inc/classes/BxDolInstallerUtils.php

+ 8 - 6
inc/classes/BxDolInstallerUtils.php

@@ -32,18 +32,20 @@ class BxDolInstallerUtils extends BxDolIO
     {
     	$sConfig = '';
     	if(is_array($mixed) && !empty($mixed['path']))
-			$sConfig = BX_DIRECTORY_PATH_MODULES . $mixed['path'] . 'install/config.php';
-		else if(is_string($mixed))
-			$sConfig = $mixed;
-		else 
-			return array();
+            $sConfig = BX_DIRECTORY_PATH_MODULES . $mixed['path'] . 'install/config.php';
+        else if(is_string($mixed))
+            $sConfig = $mixed;
+        else 
+            return array();
 
     	if(!file_exists($sConfig))
             return array();
 
+        ob_start();
         include($sConfig);
+        ob_end_clean();
 
-        return $aConfig;
+        return isset($aConfig) ? $aConfig : array();
     }
 
     static public function isModuleInstalled($sUri)