Skip to content

Commit

Permalink
Merge branch 'hotfix/1.4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski committed Jun 4, 2018
2 parents 7085116 + 57ee694 commit 73e91d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/tl_nc_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ class tl_nc_message extends \Backend
*/
public function modifyPalette(\DataContainer $dc)
{
if ('edit' !== \Input::get('act')) {
if ('edit' !== \Input::get('act') || !$dc->id || ($message = Message::findByPk($dc->id)) === null) {
return;
}

$message = Message::findByPk($dc->id);
$gateway = $message->getRelated('gateway');

if ($gateway !== null && 'queue' === $gateway->type) {
Expand Down

0 comments on commit 73e91d8

Please sign in to comment.