Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Update api_desc_tpl.php
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-liyang authored Aug 3, 2017
1 parent dba85d8 commit 9676403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/api_desc_tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

foreach ($rules as $key => $rule) {
$name = isset($rule['1'])?ltrim($rule['1'], '$'):'';
if (!isset($rule['type'])) {
if (!isset($rule['0'])) {
$rule['type'] = 'string';
}
$type = isset($typeMaps[$rule[0]]) ? $typeMaps[$rule[0]] : $rule[0];
Expand Down

0 comments on commit 9676403

Please sign in to comment.