Update functions/functions.inc.php

removed bug of automatic indexing