i remember seeing a short version of an if statement But don't remember the details could someone update me about those
found it 🙂
$type = ( $_GET['t'] ) ? 2 : 1;