Commit 4de17606 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review

Merge "Bug 1457663: usort error if no views outside collections in export"

parents cb68c395 6c741fac
......@@ -463,7 +463,9 @@ class PluginExportHtml extends PluginExport {
foreach (array_keys($this->collections) as $id) {
usort($list['collections'][$id]['views'], 'sort_by_title');
}
usort($list['views'], 'sort_by_title');
if ($nviews) {
usort($list['views'], 'sort_by_title');
}
if ($ncollections) {
usort($list['collections'], 'sort_by_title');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment