Index: trunk/extensions/Translate/utils/MessageGroupStats.php |
— | — | @@ -241,6 +241,11 @@ |
242 | 242 | |
243 | 243 | list( $total, $translated, $fuzzy ) = $aggregates; |
244 | 244 | |
| 245 | + // Don't add nulls to the database, causes annoying warnings |
| 246 | + if ( $total === null ) { |
| 247 | + return $aggregates; |
| 248 | + } |
| 249 | + |
245 | 250 | $data = array( |
246 | 251 | 'tgs_group' => $id, |
247 | 252 | 'tgs_lang' => $code, |