500 error viewing content after doing latest H5P update


I just updated H5P, and now when users go to view content the screen is blank, and there is a 500 error:

[Fri Jan 27 12:55:02 2017] [error] [client] PHP Parse error:  syntax error, unexpected '[' in /var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php on line 2515, referer: https://h5p.deakin.edu.au/

Line 2515 is

    $display_options = [];

Any ideas?

The error occurs in versions beyond h5p-7.x-1.22 (which is ok)


icc's picture

Which version are you using?
7.x-1.24 should have fixed this issue.