diff options
author | gweltas <gweltas@piwigo.org> | 2004-01-15 17:06:45 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-01-15 17:06:45 +0000 |
commit | 384ec739f6c11ab82f9a57e9398e954206c7a7ca (patch) | |
tree | 0155d90946660816650d5f5f3031968cc8da6caa /register.php | |
parent | 855398f63e4215ed16413a89f781dd2f6cffa231 (diff) |
Correction of php warnings
git-svn-id: http://piwigo.org/svn/branches/release-1_3@280 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'register.php')
-rw-r--r-- | register.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/register.php b/register.php index 0f0669926..0d32ca9db 100644 --- a/register.php +++ b/register.php @@ -70,7 +70,8 @@ $vtp->addSession( $handle, 'line' ); $vtp->setVar( $handle, 'line.name', $lang['login'] ); $vtp->addSession( $handle, 'text' ); $vtp->setVar( $handle, 'text.name', 'login' ); -$vtp->setVar( $handle, 'text.value', $_POST['login'] ); +if (isset( $_POST['login'])) + $vtp->setVar( $handle, 'text.value', $_POST['login'] ); $vtp->closeSession( $handle, 'text' ); $vtp->closeSession( $handle, 'line' ); //-------------------------------------------------------------------- password @@ -94,7 +95,8 @@ $vtp->addSession( $handle, 'line' ); $vtp->setVar( $handle, 'line.name', $lang['mail_address'] ); $vtp->addSession( $handle, 'text' ); $vtp->setVar( $handle, 'text.name', 'mail_address' ); -$vtp->setVar( $handle, 'text.value', $_POST['mail_address'] ); +if (isset( $_POST['mail_address'])) + $vtp->setVar( $handle, 'text.value', $_POST['mail_address'] ); $vtp->closeSession( $handle, 'text' ); $vtp->closeSession( $handle, 'line' ); //----------------------------------------------------------- html code display |