Update index.php

Logic error fixed to match rest of codiad