From: Raimond Spekking Date: Fri, 16 Mar 2007 10:50:50 +0000 (+0000) Subject: when blocking a user the option 'anononly' is not available/has no effect X-Git-Tag: 1.31.0-rc.0~53706 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=44810bd5e4913ca1ef77251d0ff78ee99d1af7ac;p=lhc%2Fweb%2Fwiklou.git when blocking a user the option 'anononly' is not available/has no effect -> do not write this into log --- 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';