Procházet zdrojové kódy

Merge pull request #129 from live627/packman

! Undefined index while adding hooks and credits while parsing a package
emanuele45 před 12 roky
rodič
revize
1bca8bfd92
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Sources/Packages.php

+ 1 - 1
Sources/Packages.php

@@ -645,7 +645,7 @@ function PackageInstallTest()
 		if (empty($thisAction))
 		if (empty($thisAction))
 			continue;
 			continue;
 
 
-		if (!file_exists($boarddir . '/Packages/temp/' . $context['base_path'] . $action['filename']))
+		if (isset($action['filename']) && !!file_exists($boarddir . '/Packages/temp/' . $context['base_path'] . $action['filename']))
 		{
 		{
 			$context['has_failure'] = true;
 			$context['has_failure'] = true;