Finish adding schema updates to initial install function

This commit is contained in:
2014-11-16 19:56:16 +11:00
parent eab80a1fdf
commit 0d5245af30
4 changed files with 57 additions and 10 deletions

View File

@@ -334,6 +334,12 @@ function _booking_max_dob_ts()
*/
function _booking_avg_age($sum, $count, $reference_ts)
{
//handle condition where count is zero
if ($count == 0)
{
return "Zero";
}
global $event;
//calculate the average age timestamp
$average = $sum / $count;