Code Duplication    Length = 9-9 lines in 2 locations

htdocs/modules/system/class/maintenance.php 2 locations

@@ 189-197 (lines=9) @@
186
                    } else {
187
                        $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td>';
188
                    }
189
                } elseif ($tab1[$j] == 2) {
190
                    // Check tables
191
                    $result = $this->db->queryF('CHECK TABLE ' . $this->prefix . $tables[$i]);
192
                    if ($result) {
193
                        $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('success.png') . '" /></td>';
194
                    } else {
195
                        $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td>';
196
                    }
197
                } elseif ($tab1[$j] == 3) {
198
                    // Repair
199
                    $result = $this->db->queryF('REPAIR TABLE ' . $this->prefix . $tables[$i]);
200
                    if ($result) {
@@ 205-213 (lines=9) @@
202
                    } else {
203
                        $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td>';
204
                    }
205
                } elseif ($tab1[$j] == 4) {
206
                    // Analyze
207
                    $result = $this->db->queryF('ANALYZE TABLE ' . $this->prefix . $tables[$i]);
208
                    if ($result) {
209
                        $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('success.png') . '" /></td>';
210
                    } else {
211
                        $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td>';
212
                    }
213
                } else {
214
                    $ret .= '<td>&nbsp;</td>';
215
                }
216
            }