Skip to content

Commit

Permalink
Update APII.php
Browse files Browse the repository at this point in the history
TemplateData can apparently fail and return no data.
  • Loading branch information
cyberpower678 committed Jun 3, 2023
1 parent 6e32659 commit 24d58d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/Core/APII.php
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,8 @@ public static function getTemplateData( $templates, $force = false ) {
}

if( isset( $limit ) ) $batch = array_slice( $toLookup, 0, $limit );

if( empty( $data['pages'] ) ) break;
}

foreach( $templates as $tid => $template ) {
Expand Down

0 comments on commit 24d58d0

Please sign in to comment.