Update length.php

Changed default value to 1 to eliminate division by zero errors when no value found.