浏览代码

! Undefined index while adding hooks and credits while parsing a package

Signed-off-by: John Rayes <[email protected]>
John Rayes 12 年之前
父节点
当前提交
751f03e133
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/Packages.php

+ 1 - 1
Sources/Packages.php

@@ -645,7 +645,7 @@ function PackageInstallTest()
 		if (empty($thisAction))
 			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;