Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -1404,7 +1404,7 @@ |
1405 | 1405 | foreach( $addLanguages as $code ) { |
1406 | 1406 | $insertArray[] = array( 'not_id' => $row->not_id, 'not_language' => $code ); |
1407 | 1407 | } |
1408 | | - $res = $dbw->insert( 'cn_notice_languages', $insertArray ); |
| 1408 | + $res = $dbw->insert( 'cn_notice_languages', $insertArray, __METHOD__, array( 'IGNORE' ) ); |
1409 | 1409 | |
1410 | 1410 | // Remove disassociated languages |
1411 | 1411 | $removeLanguages = array_diff( $oldLanguages, $newLanguages ); |