#1946 - Stack trace in admin_addons module

This is a spacer post for a website comment topic. The content this topic relates to: #1946 - Stack trace in admin_addons module
Yeah I was just gonna add this as a bug :)
I think I found a fix for this. But I'm not sure if this is a fix or a temporary workaround. In the find_available_addons() function in sources\addons2.php, I added an 'else' clause on the $info['copyright_attribution] check. I added to this block of code:

if (!empty($info['copyright_attribution'])) {
$info['copyright_attribution'] = explode("\n", $info['copyright_attribution']);
}

so it looks like this:
if (!empty($info['copyright_attribution'])) {
$info['copyright_attribution'] = explode("\n", $info['copyright_attribution']);
} else {
$info['copyright_attribution'] = array ();
}
I will commit this to github.
Thanks Jason
No problem Chris :)

I just ran into a similar stack trace when re-installing a previously installed addon and used the same fix in the inform_about_addon_install() function in sources\addons2.php.

I created a pull request for it, and a small cosmetic fix for the side_printer_friendly block.
0 guests and 0 members have recently viewed this.