Forum

Loading error
 
Notifications
Retirer tout

Loading error

4 Posts
2 Utilisateurs
0 Reactions
2,480 Vu
 HEU
(@quantamedical)
Posts: 58
Active Member
Début du sujet
 
[#5952]

I report this error thince install of 8.0.2 yesterday

[Wed May 01 17:01:09.017460 2019] [:error] [pid 46772] [client 192.168.1.110:11173] PHP Fatal error: Can't use method return value in write context in /var/www/html/projeqtor/model/EmployeeManagerMain.php on line 560, referer: http://projeqtor.quanta-medical.com/view/main.php

I correct error by

public function hasManager($actual=true, $includeLeaveAdmin) {
$ret = $this->getManager($actual,$includeLeaveAdmin);
return(empty($ret)?false:true);
// return (empty($this->getManager($actual,$includeLeaveAdmin))?false:true);
}

Thanks


 
Posté : 2 Mai AM 10:055
(@babynus)
Posts: 14952
Membre Admin
 

Thanks for pointing out the issue, and moreover for providing fix.

Strange, but I could not reproduce.
Which version of PHP are you using ?


 
Posté : 3 Mai PM 16:055
 HEU
(@quantamedical)
Posts: 58
Active Member
Début du sujet
 

PHP Version 5.4.16 on CENTOS 7, updated yesterday


 
Posté : 3 Mai PM 16:055
(@babynus)
Posts: 14952
Membre Admin
 

OK, this explains the non reproductibility on PHP > 7.0


 
Posté : 3 Mai PM 17:055
Share:
Retour en haut