Fix syntax error in logic.php