Make sure $doUserRightsLogLike is set all the times

This fixes a PHP notice

Change-Id: I09b0b0c051b250b1e0a8e937948aaf2c48d17f7c