fixed a bug that caused a php error when a readme file was not a regular file
This commit is contained in:
		| @ -128,7 +128,7 @@ class Code extends Controller | |||||||
| 					if (strlen($rf) > 0) | 					if (strlen($rf) > 0) | ||||||
| 					{ | 					{ | ||||||
| 						$readme = $this->subversion->getFile ($projectid, $path . '/' . $rf, $rev); | 						$readme = $this->subversion->getFile ($projectid, $path . '/' . $rf, $rev); | ||||||
| 						if ($readme !== FALSE) | 						if ($readme !== FALSE && $readme['type'] == 'file') | ||||||
| 						{ | 						{ | ||||||
| 							$data['readme_text'] = $readme['content']; | 							$data['readme_text'] = $readme['content']; | ||||||
| 							$data['readme_file'] = $rf; | 							$data['readme_file'] = $rf; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user