&1", $count, $return); if($return !== 0){ $message = 'Could not execute deletion command: "' . $count[0] . '"'; break; } if(intval($count[0]) == 0){ $output = ""; exec($tmsu . "delete " . $tag, $output); $deleted_tags .= $tag . " "; } } if($deleted_tags !== "") $message = "Deleted unused tags: (" . $deleted_tags . ")"; array_push($_SESSION["msg"], $message); if(isset($_GET["_back"])){ header("Location: " . $_GET["_back"]); } else{ //header("Location: " . $BASE_PATH . "/?msg[0]=" , $message); header("Location: " . $BASE_PATH . "/");}