CC-4264: Smart Block: Fail to generate block with some unavailable files

- fixed
This commit is contained in:
James 2012-08-24 17:02:37 -04:00
parent c561f36aa1
commit 2ca4a369b2
2 changed files with 13 additions and 11 deletions

View File

@ -430,7 +430,7 @@ EOT;
foreach ($p_items as $ac) {
Logging::info("Adding audio file {$ac}");
try {
if (is_array($ac) && $ac[1] == 'audioclip') {
$res = $this->insertBlockElement($this->buildEntry($ac[0], $pos));
$pos = $pos + 1;
@ -438,6 +438,9 @@ EOT;
$res = $this->insertBlockElement($this->buildEntry($ac, $pos));
$pos = $pos + 1;
}
} catch (Exception $e) {
Logging::log($e->getMessage());
}
}
//reset the positions of the remaining items.

View File

@ -1,5 +1,4 @@
<div id="import_status" class="library_import" style="display:none">File import in progress... <img src="/css/images/file_import_loader.gif"></img></div>
<div id="advanced_search">
</div>
<div id="advanced_search"></div>
<table id="library_display" cellpadding="0" cellspacing="0" class="datatable">
</table>