Index: trunk/extensions/SecurePoll/includes/talliers/CommentDumper.php |
— | — | @@ -34,6 +34,12 @@ |
35 | 35 | |
36 | 36 | $comments = $scores['comment']; |
37 | 37 | unset($scores['comment']); |
| 38 | + |
| 39 | + // Short circuit if the comments are empty |
| 40 | + if ( $comments['native'] == '' && $comments['en'] == '' ) { |
| 41 | + return Status::newGood(); |
| 42 | + } |
| 43 | + |
38 | 44 | $output = array( $comments['native'], $comments['en'] ); |
39 | 45 | |
40 | 46 | ksort( $output ); |