Update Action.php

fixed post check