Prevent error "Undefined index" when no subtype provided

This commit is contained in:
Antoine Bluchet 2015-06-22 15:47:46 +02:00
parent 7c8b010215
commit 20f4cc673f

View File

@ -534,7 +534,7 @@ class ApiDocExtractor
{
foreach ($array as $name => $info) {
if (empty($info['dataType'])) {
if (empty($info['dataType']) && isset($info['subType'])) {
$array[$name]['dataType'] = $this->generateHumanReadableType($info['actualType'], $info['subType']);
}