From 44810bd5e4913ca1ef77251d0ff78ee99d1af7ac Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Fri, 16 Mar 2007 10:50:50 +0000 Subject: [PATCH] when blocking a user the option 'anononly' is not available/has no effect -> do not write this into log --- includes/SpecialBlockip.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 6ed5468d9f..f427519d0a 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -355,7 +355,8 @@ class IPBlockForm { */ private function blockLogFlags() { $flags = array(); - if( $this->BlockAnonOnly ) + if( $this->BlockAnonOnly && IP::isIPAddress( $this->BlockAddress ) ) + // when blocking a user the option 'anononly' is not available/has no effect -> do not write this into log $flags[] = 'anononly'; if( $this->BlockCreateAccount ) $flags[] = 'nocreate'; -- 2.20.1