Index: trunk/phase3/includes/Linker.php |
— | — | @@ -857,9 +857,9 @@ |
858 | 858 | } |
859 | 859 | if( $userId ) { |
860 | 860 | // check if the user has an edit |
861 | | - $count = !is_null($edits) ? $edits : User::edits( $userId ); |
862 | | - if( $redContribsWhenNoEdits && $count == 0 ) { |
863 | | - $style = " class='new'"; |
| 861 | + if( $redContribsWhenNoEdits ) { |
| 862 | + $count = !is_null($edits) ? $edits : User::edits( $userId ); |
| 863 | + $style = ($count == 0) ? " class='new'" : ''; |
864 | 864 | } else { |
865 | 865 | $style = ''; |
866 | 866 | } |