Skip to content
Snippets Groups Projects
Commit 6ed2d435 authored by rswindell's avatar rswindell
Browse files

Don't export empty user avatar lists. Oops.

parent 7526f805
No related branches found
No related tags found
No related merge requests found
......@@ -278,6 +278,8 @@ function export_users(msgbase, realnames)
if(realnames)
list[data].push(u.name);
}
if(!list.length)
return true; // Nothing to export
for(var i in list)
list[i].sort();
var body = "json-begin\r\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment