r32233 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r32232
|
r32233
|
r32234
>
Date:
17:33, 20 March 2008
Author:
simetrical
Status:
old
Tags:
Comment:
(
bug 13454
) Article::updateCategoryCounts can attempt to execute empty inserts.
Modified paths:
/trunk/phase3/includes/Article.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/Article.php
—
—
@@ -3367,6 +3367,10 @@
3368
3368
#
3369
3369
# Sometimes I wish we had INSERT ... ON DUPLICATE KEY UPDATE.
3370
3370
$insertCats = array_merge( $added, $deleted );
3371
+ if( !$insertCats ) {
3372
+ # Okay, nothing to do
3373
+ return;
3374
+ }
3371
3375
$insertRows = array();
3372
3376
foreach( $insertCats as $cat ) {
3373
3377
$insertRows[] = array( 'cat_title' => $cat );
Status & tagging log
15:25, 12 September 2011
Meno25
(
talk
|
contribs
)
changed the
status
of r32233
[
removed:
ok
added:
old]