Skip to content

Commit

Permalink
Fix possible undefined index errors in profile.php.
Browse files Browse the repository at this point in the history
Loosely related to #653.
  • Loading branch information
franzliedke committed Apr 8, 2012
1 parent bb3e8d9 commit d77f959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,9 @@
case 'personal':
{
$form = array(
'realname' => pun_trim($_POST['form']['realname']),
'url' => pun_trim($_POST['form']['url']),
'location' => pun_trim($_POST['form']['location']),
'realname' => isset($_POST['form']['realname']) ? pun_trim($_POST['form']['realname']) : '',
'url' => isset($_POST['form']['url']) ? pun_trim($_POST['form']['url']) : '',
'location' => isset($_POST['form']['location']) ? pun_trim($_POST['form']['location']) : '',
);

// Add http:// if the URL doesn't contain it already (while allowing https://, too)
Expand Down

0 comments on commit d77f959

Please sign in to comment.