error in emoncms user_model.php

Hello All, 

not sure if the timestore branch is still active but I just installed it by following this link : https://github.com/emoncms/emoncms/tree/postgreSQLite 

and as soon as I launched the emoncms web interface , I got an error in line 475 of file  /var/www/emoncms/Modules/user/user_model.php  

I changed the declaration of the variable and it worked all fine .. 

in public function get_timezones() : 

$timezones = array();// was $timezones = [];

just to add my contrib to this project ;-)  

cheers 

Rico 

mking007's picture

Re: error in emoncms user_model.php

Thanks for this :D

I've just done a fresh emoncms 8.5 installation on a shared LAMP server and encountered this problem. Your change worked great :D

Thanks again

Michael

jmessenger's picture

Re: error in emoncms user_model.php

I created https://github.com/emoncms/emoncms/pull/339 Pull Request 339 for this.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.