Fix substr function in events_manage_custom_columns.