From 209ba99d00f97cd19ebdde22d44ea415ed4cce74 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 26 Feb 2008 20:31:25 +0000 Subject: [PATCH] users/vacation.php: - fix: only show vacation as active if it is really active (inactive vacation message caused the "vacation is active" message too) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@303 a1433add-5e2c-0410-b055-b7f2511e0802 --- users/vacation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/vacation.php b/users/vacation.php index 15aee615..478d384d 100644 --- a/users/vacation.php +++ b/users/vacation.php @@ -51,7 +51,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") if ($result['rows'] == 1) { $row = db_array($result['result']); - $tMessage = $PALANG['pUsersVacation_welcome_text']; + if ($row['active'] == db_get_boolean(True)) $tMessage = $PALANG['pUsersVacation_welcome_text']; $tSubject = $row['subject']; $tBody = $row['body']; }