Index: trunk/extensions/Translate/utils/MessageGroupStats.php |
— | — | @@ -107,12 +107,14 @@ |
108 | 108 | } |
109 | 109 | |
110 | 110 | public static function clearGroup( $id ) { |
| 111 | + if ( !count( $id ) ) return; |
111 | 112 | $dbw = wfGetDB( DB_MASTER ); |
112 | 113 | $conds = array( 'tgs_group' => $id ); |
113 | 114 | $dbw->delete( self::TABLE, $conds, __METHOD__ ); |
114 | 115 | } |
115 | 116 | |
116 | 117 | public static function clearLanguage( $code ) { |
| 118 | + if ( !count( $code ) ) return; |
117 | 119 | $dbw = wfGetDB( DB_MASTER ); |
118 | 120 | $conds = array( 'tgs_lang' => $code ); |
119 | 121 | $dbw->delete( self::TABLE, $conds, __METHOD__ ); |