Code Duplication    Length = 5-5 lines in 2 locations

application/modules/admin/backup.php 1 location

@@ 50-54 (lines=5) @@
47
                    $bad[] = $key;
48
                }
49
            }
50
            if (count($bad) > 0) {
51
                showMessage(lang('Some of settings not saved', 'admin'), 'Error', 'r');
52
            } else {
53
                showMessage(lang('Settings saved', 'admin'));
54
            }
55
        }
56
    }
57

application/modules/admin/categories.php 1 location

@@ 457-461 (lines=5) @@
454
455
        $this->cache->delete_all();
456
457
        if (count($this->input->post('ids')) > 1) {
458
            showMessage(lang('Pages categories deleted', 'admin'));
459
        } else {
460
            showMessage(lang('Pages category deleted', 'admin'));
461
        }
462
463
        return TRUE;
464
    }