Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/FRDependencyUpdate.php |
— | — | @@ -134,11 +134,11 @@ |
135 | 135 | } |
136 | 136 | if ( $del ) { |
137 | 137 | $clause = self::makeWhereFrom2d( $del, wfGetDB( DB_MASTER ) ); |
138 | | - $where = array( $clause, 'ftr_from' => $this->title->getArticleId() ); |
139 | | - } else { |
140 | | - $where = false; |
| 138 | + if ( $clause ) { |
| 139 | + return array( $clause, 'ftr_from' => $this->title->getArticleId() ); |
| 140 | + } |
141 | 141 | } |
142 | | - return $where; |
| 142 | + return false; |
143 | 143 | } |
144 | 144 | |
145 | 145 | // Make WHERE clause to match $arr titles |