From f7b32b76cce0cca2dcd5a31b41cd9e4b3bdd5d69 Mon Sep 17 00:00:00 2001 From: fantu <fantu@ispconfig3> Date: Mon, 29 Dec 2008 03:35:09 -0500 Subject: [PATCH] Improve italian error and standard index file --- interface/web/client/client_edit.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/web/client/client_edit.php b/interface/web/client/client_edit.php index b8f111b..d1f0561 100644 --- a/interface/web/client/client_edit.php +++ b/interface/web/client/client_edit.php @@ -1,6 +1,6 @@ <?php /* -Copyright (c) 2005, Till Brehm, projektfarm Gmbh +Copyright (c) 2005 - 2008, Till Brehm, projektfarm Gmbh All rights reserved. Redistribution and use in source and binary forms, with or without modification, @@ -72,7 +72,7 @@ $text = ''; foreach($tplAdd as $item){ if (trim($item) != ''){ - if ($text != '') $text .= '<br>'; + if ($text != '') $text .= '<br />'; $text .= $tpl[$item]; } } @@ -132,7 +132,7 @@ global $app; // username changed - if($this->oldDataRecord['username'] != $this->dataRecord['username']) { + if(isset($this->dataRecord['username']) && $this->dataRecord['username'] != '' && $this->oldDataRecord['username'] != $this->dataRecord['username']) { $username = mysql_real_escape_string($this->dataRecord["username"]); $client_id = $this->id; $sql = "UPDATE sys_user SET username = '$username' WHERE client_id = $client_id"; -- Gitblit v1.9.1