aboutsummaryrefslogtreecommitdiffstats
path: root/register.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-03-20 00:52:37 +0000
committergweltas <gweltas@piwigo.org>2004-03-20 00:52:37 +0000
commit4128835db8d7b8e619951d4c31e23bd934758f09 (patch)
tree4fddd9ea03f3ebeeaba73c3a42f7130e29a54b58 /register.php
parent8850aabc34e524e1a7816c363657e3176502a708 (diff)
- Template migration
- Admin Control Panel migration - Language migration git-svn-id: http://piwigo.org/svn/trunk@393 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--register.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/register.php b/register.php
index d32eb0d31..bfd2e5ef7 100644
--- a/register.php
+++ b/register.php
@@ -51,8 +51,8 @@ if ( isset( $_POST['submit'] ) )
}
}
-$login = empty($_POST['login'])?$_POST['login']:'';
-$email = empty($_POST['login'])?$_POST['login']:'';
+$login = !empty($_POST['login'])?$_POST['login']:'';
+$email = !empty($_POST['login'])?$_POST['login']:'';
//----------------------------------------------------- template initialization
//
@@ -62,8 +62,6 @@ $title= $lang['register_page_title'];
include(PHPWG_ROOT_PATH.'include/page_header.php');
$template->set_filenames( array('register'=>'register.tpl') );
-initialize_template();
-
$template->assign_vars(array(
'L_TITLE' => $lang['register_title'],
'L_GUEST' => $lang['ident_guest_visit'],
@@ -79,10 +77,10 @@ $template->assign_vars(array(
));
//-------------------------------------------------------------- errors display
-if ( sizeof( $errors ) != 0 )
+if ( sizeof( $error ) != 0 )
{
$template->assign_block_vars('errors',array());
- for ( $i = 0; $i < sizeof( $errors ); $i++ )
+ for ( $i = 0; $i < sizeof( $error ); $i++ )
{
$template->assign_block_vars('errors.error',array('ERROR'=>$errors[$i]));
}