From aa0e52e8dd066877e616a39e5d48cb79370b0aa7 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 29 Jun 2015 09:50:11 +0000 Subject: [PATCH] fixed a bug that caused a php error when a readme file was not a regular file --- codepot/src/codepot/controllers/code.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codepot/src/codepot/controllers/code.php b/codepot/src/codepot/controllers/code.php index 9bb62274..9b71172e 100644 --- a/codepot/src/codepot/controllers/code.php +++ b/codepot/src/codepot/controllers/code.php @@ -128,7 +128,7 @@ class Code extends Controller if (strlen($rf) > 0) { $readme = $this->subversion->getFile ($projectid, $path . '/' . $rf, $rev); - if ($readme !== FALSE) + if ($readme !== FALSE && $readme['type'] == 'file') { $data['readme_text'] = $readme['content']; $data['readme_file'] = $rf;