Fix for PHP Notice: "Undefined index: timestamp"