hopefully final fix for the 404 in mail attachments problem

caused by typeof null !== 'undefined' :(
This commit is contained in:
ralf 2025-01-12 13:32:20 +01:00
parent 24087af242
commit 5303975044

View File

@ -146,7 +146,7 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
*/
get_mime_info: function(_type, _app_or_num)
{
if (typeof _app_or_num === 'undefined') _app_or_num = 1;
if (!_app_or_num) _app_or_num = 1;
let wildcard_mime;
for(const app of isNaN(_app_or_num) ? [_app_or_num] : Object.keys(link_registry))
{