Update events.lib.inc.php

correction bug 7171