From b757addd72393b4fe730c07a1fe2ff5f04ee6837 Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Sun, 8 Sep 2013 03:20:28 -0500 Subject: [PATCH] fixed another thing --- app/models/Commands/EditTrackCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Commands/EditTrackCommand.php b/app/models/Commands/EditTrackCommand.php index 75cd8d11..5bf58d3a 100644 --- a/app/models/Commands/EditTrackCommand.php +++ b/app/models/Commands/EditTrackCommand.php @@ -62,7 +62,7 @@ $track = $this->_track; $track->title = $this->_input['title']; - $track->released_at = $this->_input['released_at'] != "" ? strtotime($this->_input['released_at']) : null; + $track->released_at = isset($this->_input['released_at']) && $this->_input['released_at'] != "" ? strtotime($this->_input['released_at']) : null; $track->description = isset($this->_input['description']) ? $this->_input['description'] : ''; $track->lyrics = isset($this->_input['lyrics']) ? $this->_input['lyrics'] : ''; $track->license_id = $this->_input['license_id'];