Update core.php

Fixing error