Should be
```
$username = ($post_data['post_username']) ? $post_data['post_username'] : $post_data['username'];
```

same below