From 986f5d9f3e330f52a068ba916a10ea938a80ad41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Fri, 21 Dec 2012 00:04:46 +0100
Subject: [PATCH] fixing variable name

---
 lib/public/util.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/public/util.php b/lib/public/util.php
index 9727cfda28..af782b0148 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -202,8 +202,8 @@ class Util {
 	public static function getDefaultEmailAddress($user_part) {
 		$host_name = self::getServerHostName();
 		// handle localhost installations
-		if ($server_host === 'localhost') {
-			$server_host = "example.com";
+		if ($host_name === 'localhost') {
+            $host_name = "example.com";
 		}
 		return $user_part.'@'.$host_name;
 	}
-- 
GitLab