Update system/functions.php

convert empty string into 0