$subfunction = isset($_GET['s']) ? $_GET['s'] : null;
if (($function && $function == 'show' && !$subfunction) ||
($function && $function == 'add' && $subfunction) ||
- ($function && $function == 'del' && $subfunction) {
+ ($function && $function == 'del' && $subfunction)) {
header('Location: index.php');
} else if($function == 'show') {
if ($subfunction == 'all') {