Yes this code fix works, but I would reiterate if I am changing code, then this is a code issue, or a PHP version issue, or a Joomla / k2 talking together issue. So code issue. I know Joomla changed a lot of code, have you guys asked them what they changed so that either they can fix this globally, or you can fix your code to make this work for everyone? I don't have access to PHP 7 or I would change it. I tried 5.6, 5.5, and a version of 5.4 and it didn't work without changing the code. Changing === to == does this affect other versions of Joomla, or higher version of PHP?