Index: trunk/extensions/CodeReview/CodeRevision.php |
— | — | @@ -127,6 +127,9 @@ |
128 | 128 | } |
129 | 129 | |
130 | 130 | function saveComment( $text, $review, $parent=null ) { |
| 131 | + if( !$text ) { |
| 132 | + return 0; |
| 133 | + } |
131 | 134 | $dbw = wfGetDB( DB_MASTER ); |
132 | 135 | $data = $this->commentData( $text, $review, $parent ); |
133 | 136 | $data['cc_id'] = $dbw->nextSequenceValue( 'code_comment_cc_id' ); |