From f1119537ea070019c90498871d8e27a0d1d4523b Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Tue, 31 Mar 2015 12:06:52 +0100 Subject: [PATCH] Fix undefined index warning Bug: T67063 Change-Id: I607229533f7c282e50a3383fc594e4d95ce5a586 --- ContactPage_body.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ContactPage_body.php b/ContactPage_body.php index 492174a..0eec8c5 100644 --- a/ContactPage_body.php +++ b/ContactPage_body.php @@ -251,8 +251,7 @@ class SpecialContact extends UnlistedSpecialPage { } $includeIP = isset( $config['IncludeIP'] ) && $config['IncludeIP'] - && ( $formData['IncludeIP'] || $user->isAnon() - ); + && ( $user->isAnon() || $formData['IncludeIP'] ); $fromName = $formData['FromName']; $subject = $formData['Subject'];