@tsteur opened this Pull Request on December 16th 2018 Member

Prevents errors like Error unserializing the following response from ?module=API&method=API.get&idSite=1&period=year&date=last3&format=php&trigger=archivephp: Skipped

When I tested locally it also avoided the message WARNING [2018-12-16 22:40:18] 5677 piwik/core/Common.php(271): Notice - unserialize(): Error at offset 0 of 7 bytes

refs DEV-1521

It is unserialized eg here: https://github.com/matomo-org/matomo/blob/3.x-dev/core/CronArchive.php#L867 and then evaluated here: https://github.com/matomo-org/matomo/blob/3.x-dev/core/CronArchive.php#L1433-L1463 (the other one expects an array of array but still works cause of empty check)

This Pull Request was closed on December 16th 2018
Powered by GitHub Issue Mirror