shaarli / Shaarli

The personal, minimalist, super-fast, database free, bookmarking service - community repo
https://shaarli.readthedocs.io/
Other
3.44k stars 294 forks source link

Erreur accessing ?do=daily #948

Closed ErwanLeroux closed 7 years ago

ErwanLeroux commented 7 years ago

I installed https://github.com/shaarli/Shaarli/releases/tag/v0.9.1 on a new server today and got the following error when I try to access ?do=daily:

Notice: Undefined offset: -1 in /var/www/shaarli/index.php on line 599

Fatal error: Uncaught Error: Call to a member function getTimestamp() on boolean in /var/www/shaarli/index.php:654 Stack trace: #0 /var/www/shaarli/index.php(869): showDaily(Object(PageBuilder), Object(LinkDB), Object(Shaarli\Config\ConfigManager), Object(PluginManager)) #1 /var/www/shaarli/index.php(2277): renderPage(Object(Shaarli\Config\ConfigManager), Object(PluginManager), Object(LinkDB), Object(History)) #2 {main} thrown in /var/www/shaarli/index.php on line 654

I have php v7.0.19-1 and apache 2.4.5 on debian 9 My time-zone is Europe/Paris

ErwanLeroux commented 7 years ago

The problem is only there when there is no share.

thewilli commented 7 years ago

@ErwanLeroux you're right, here's your PR :wink:

ErwanLeroux commented 7 years ago

That was quick, thanks