fixed a bug that caused a php error when a readme file was not a regular file
This commit is contained in:
parent
29354a812c
commit
aa0e52e8dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user