mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Update ExportMailWorker.php
remove bad "assert"s
This commit is contained in:
@@ -87,9 +87,7 @@ class ExportMailWorker implements WorkerInterface
|
|||||||
// we must stamp this document
|
// we must stamp this document
|
||||||
try {
|
try {
|
||||||
$record = $this->app->getApplicationBox()->get_databox($v_file['databox_id'])->get_record($v_file['record_id']);
|
$record = $this->app->getApplicationBox()->get_databox($v_file['databox_id'])->get_record($v_file['record_id']);
|
||||||
assert(!is_object($record));
|
|
||||||
$sd = $record->get_subdef($k_subdef);
|
$sd = $record->get_subdef($k_subdef);
|
||||||
assert(!is_object($sd));
|
|
||||||
if(!is_null($path = \recordutils_image::stamp($this->app, $sd))) {
|
if(!is_null($path = \recordutils_image::stamp($this->app, $sd))) {
|
||||||
// stamped !
|
// stamped !
|
||||||
$pi = pathinfo($path);
|
$pi = pathinfo($path);
|
||||||
|
Reference in New Issue
Block a user