PHP being insane, part 5832
Contents
Somehow: ( $a && $b ) || ( $b && $c ) || ( $a && $c )
Became: $a ? ( $b || $c ) : ( $b && $c )
Became: count( array_filter( array( $a, $b, $c ) ) ) >= 2
Became: "$a$b$c" > 1
God dammit PHP…
(from discussion among me, ^d, ori-l, bd808 and anomie on #mediawiki-core
about how to represent ‘if at least 2 of three conditions are true’)
Author yuvipanda
LastMod 2013-12-13