X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FAttach.php;h=c924934b7bc2cc2adaa9f1485abded8c8b5ae517;hb=fd5914011cb5c67b827886a5db0e7760a307ad1d;hp=d9a6d9f64c1efd4d90e452902958724c0bbf7031;hpb=3cef3ab107f87f999cf4adcc909259925a631cea;p=friendica.git diff --git a/src/Module/Attach.php b/src/Module/Attach.php index d9a6d9f64c..c924934b7b 100644 --- a/src/Module/Attach.php +++ b/src/Module/Attach.php @@ -1,6 +1,6 @@ parameters['item'])) { throw new \Friendica\Network\HTTPException\BadRequestException(); } - $item_id = intval($parameters['item']); + $item_id = intval($this->parameters['item']); // Check for existence $item = MAttach::exists(['id' => $item_id]); @@ -57,7 +57,7 @@ class Attach extends BaseModule $data = MAttach::getData($item); if (is_null($data)) { - Logger::log('NULL data for attachment with id ' . $item['id']); + Logger::notice('NULL data for attachment with id ' . $item['id']); throw new \Friendica\Network\HTTPException\NotFoundException(DI::l10n()->t('Item was not found.')); } @@ -72,7 +72,7 @@ class Attach extends BaseModule } echo $data; - exit(); + System::exit(); // NOTREACHED } }