diff --git a/locallib.php b/locallib.php index b08bafa..9cecabb 100644 --- a/locallib.php +++ b/locallib.php @@ -634,8 +634,11 @@ function aconnect_get_recordings($aconnect, $folderscoid, $sourcescoid) { if (!is_null($domnode)) { $meetingdetail = $innernodelist->item($x); - // Check if the SCO item is a recording or uploaded document. We only want to display recordings - if (!is_null($meetingdetail->getElementsByTagName('duration')->item(0))) { + // Check if the SCO item is a recording or uploaded document. We only want to display recordings. Recordings are identified as an 'icon' attribute with a value of 'archive' in element, e.g. + + $icontype = $meetingdetail->attributes->getNamedItem('icon'); + + if (!is_null($icontype) && $icontype->nodeValue === 'archive') { $j = (int) $domnode->nodeValue; $value = (!is_null($meetingdetail->getElementsByTagName('name'))) ? @@ -668,8 +671,8 @@ function aconnect_get_recordings($aconnect, $folderscoid, $sourcescoid) { $recordings[$j]->modified = (string) $value; - $value = (!is_null($meetingdetail->getElementsByTagName('duration'))) ? - $meetingdetail->getElementsByTagName('duration')->item(0)->nodeValue : ''; + $value = (!is_null($meetingdetail->attributes->getNamedItem('duration'))) ? + $meetingdetail->attributes->getNamedItem('duration')->nodeValue : ''; $recordings[$j]->duration = (string) $value; diff --git a/version.php b/version.php index cdf4f4d..41dba8f 100644 --- a/version.php +++ b/version.php @@ -21,9 +21,9 @@ * @copyright (C) 2015 Remote Learner.net Inc http://www.remote-learner.net */ -$plugin->version = 2015111000; +$plugin->version = 2017051100; $plugin->requires = 2015101600; $plugin->cron = 0; $plugin->component = 'mod_adobeconnect'; $plugin->maturity = MATURITY_STABLE; -$plugin->release = '3.0.0.0'; +$plugin->release = '3.0.0.1';