Index: trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php |
— | — | @@ -215,6 +215,10 @@ |
216 | 216 | $page_data[$row->aa_field_id][$page_prefix.'count'] += $row->submits; |
217 | 217 | } |
218 | 218 | |
| 219 | + if ( count( $page_data ) < 1 ) { |
| 220 | + return; |
| 221 | + } |
| 222 | + |
219 | 223 | $dbw->begin(); |
220 | 224 | $dbw->delete( $rev_table, array( |
221 | 225 | $rev_prefix . 'page_id' => $pageId, |
— | — | @@ -241,7 +245,7 @@ |
242 | 246 | global $wgUser; |
243 | 247 | $dbw = wfGetDB( DB_MASTER ); |
244 | 248 | $revId = $params['revid']; |
245 | | - $bucket = $params['revid']; |
| 249 | + $bucket = $params['bucket']; |
246 | 250 | $token = ApiArticleFeedbackv5Utils::getAnonToken( $params ); |
247 | 251 | $timestamp = $dbw->timestamp(); |
248 | 252 | |