Smal bug fix - if record in event table dosen't exist, I create it.
Reformating code tab->spaces
Merge branch 'develop'

Conflicts:
	edituserprofile.php
	locallib.php
	version.php