🌍
English
Hi
I tried to enable PHP 7.1 today and run into problem in template.class.php
you would see something like
Warning: A non-numeric value encountered in .../include/template.class.php on line 1791
This version of PHP is more strict with left/right values math expressions.
Ex: '' + 0 would cause warning above
Fix is quite trivial and seems to work in my hotpatch
{code} $ret = intval($s1->load_mode) - intval($s2->load_mode);
{/code}
Piwigo version: 2.8.4
PHP version: 7.1
MySQL version: 5.6
Last edited by Serge D (2016-12-30 21:43:30)
Offline
Hi
thx Could you post on https://github.com/Piwigo/Piwigo/issues/ so we can remember that one, please?
Offline
Thx :)
Offline