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;