Skip to content
  • Nigel McNie's avatar
    Make db_format_timestamp return null for any value that is 'empty'. · d6596676
    Nigel McNie authored
    Otherwise, $db->BindTimestamp() will return the string 'null' for 0 and '0', which no code in Mahara is expecting.
    
    Noticed as part of the previous commit, where $user->lastlogin defaulted to 0 (which was incorrect), and which db_format_timestamp was converting to 'null'.
    d6596676