#797 - Non-bundled addons status incorrectly report as 'Update available' even though the newest version is installed.

Identifier #797
Issue type Minor issue (breaks specific functionality)
Title Non-bundled addons status incorrectly report as 'Update available' even though the newest version is installed.
Status Closed (cannot reproduce)
Handling member Chris Graham
Addon core_addon_management
Description For Composr v9, the comparison of available addon mtime versus installed addon mtime in sources/addons.php (lines 53 and 62?) is incorrect. The '<' should be changed to '>' for both lines.

line 53: if ((!is_null($addon[0])) && ($available_addon['mtime']<$addon[0])) // If known to server, and updated

should be: if ((!is_null($addon[0])) && ($available_addon['mtime']>$addon[0])) // If known to server, and updated

line 62: if ((!is_null($addon[0])) && (!is_null($mtime)) && ($mtime<$addon[0])) // If server has it and is newer

should be: if ((!is_null($addon[0])) && (!is_null($mtime)) && ($mtime>$addon[0])) // If server has it and is newer
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated