From 0bd9d2ccdb418d3e7b2718fea4ff88a2d652fd7d Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 20 Dec 2010 16:04:14 +0100 Subject: [PATCH] Fixing empty div --- main/auth/inscription.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/auth/inscription.php b/main/auth/inscription.php index ef5dbacfc6..be2f20c0c0 100755 --- a/main/auth/inscription.php +++ b/main/auth/inscription.php @@ -81,7 +81,9 @@ if (file_exists($home.'register_top_'.$user_selected_language.'.html')) { $home_top_temp = @(string)file_get_contents($home.'register_top_'.$user_selected_language.'.html'); $open = str_replace('{rel_path}', api_get_path(REL_PATH), $home_top_temp); $open = api_to_system_encoding($open, api_detect_encoding(strip_tags($open))); - echo '
'.$open.'
'; + if (!empty($open)) { + echo '
'.$open.'
'; + } } // Forbidden to self-register