Update children.php

fixed an error caused by leaving 'depth' attribute blank - now defaults to 0 if blank or null value.