From 64ddddd3d516e2623026163f5d50f9a5e9c1d497 Mon Sep 17 00:00:00 2001 From: "Florian Aders (EleRas)" Date: Sun, 30 Oct 2011 12:11:10 +0100 Subject: [PATCH] Fixing broken changing of hostname, thx philnate, fixes #928 @5m, fixes #946 Signed-off-by: Florian Aders (EleRas) --- lib/functions/validate/function.checkHostname.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/functions/validate/function.checkHostname.php b/lib/functions/validate/function.checkHostname.php index e3f0748c..d12b404d 100644 --- a/lib/functions/validate/function.checkHostname.php +++ b/lib/functions/validate/function.checkHostname.php @@ -17,8 +17,7 @@ function checkHostname($fieldname, $fielddata, $newfieldvalue, $allnewfieldvalues) { - echo $fieldname . "--" . $fielddata . "--" . $newfieldvalue . "--". $allnewfieldvalues; - if (0 == strlen(trim($fielddata))) + if (0 == strlen(trim($newfieldvalue))) { return array(FORMFIELDS_PLAUSIBILITY_CHECK_ERROR, 'invalidhostname'); } else {