Archivist 500 error

Thanks for this - but I just managed to solve it - from a previous post i just found:

Basically on line 60 of the snippet getArchives it says to change:

$where[] = 'FROM_UNIXTIME(`'.$filterField.'`,"%Y") = "'.$year.'"';

to:

$where =[];
$where[] = 'FROM_UNIXTIME(`'.$filterField.'`,"%Y") = "'.$year.'"';

All working fine now!
Only problem is if there is a future update of the snippet, it may reverse the fix if it’s not in the update?

Thanks all - Got there in the end!!