Fix course forum in API v2

pull/2487/head
Angel Fernando Quiroz Campos 8 years ago committed by GitHub
parent e7f422509a
commit 3b6816b9c6
  1. 2
      main/inc/lib/webservices/Rest.php

@ -508,7 +508,7 @@ class Rest extends WebService
'title' => $forumInfo['forum_title'],
'description' => $forumInfo['forum_comment'],
'image' => $forumInfo['forum_image'] ? ($webCoursePath . $forumInfo['forum_image']) : '',
'numberOfThreads' => intval($forumInfo['number_of_threads']),
'numberOfThreads' => isset($forumInfo['number_of_threads']) ? intval($forumInfo['number_of_threads']) : 0,
'lastPost' => null
];

Loading…
Cancel
Save