diff options
| author | modela bitweaver <spiderr@bitweaver.org> | 2021-02-04 13:44:28 -0500 |
|---|---|---|
| committer | modela bitweaver <spiderr@bitweaver.org> | 2021-02-04 13:44:28 -0500 |
| commit | 31a7071937fcee01e84797be0a7e7b4adae083a2 (patch) | |
| tree | 90c15c1e4a4f4d9bd4f59041dbad3a5846735ad6 | |
| parent | 554418f5054e3ccef8e5da18aebaa9bb07488b32 (diff) | |
| download | liberty-31a7071937fcee01e84797be0a7e7b4adae083a2.tar.gz liberty-31a7071937fcee01e84797be0a7e7b4adae083a2.tar.bz2 liberty-31a7071937fcee01e84797be0a7e7b4adae083a2.zip | |
PHP7 warnings
| -rw-r--r-- | plugins/data.attachment.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/data.attachment.php b/plugins/data.attachment.php index 539df90..f607eb4 100644 --- a/plugins/data.attachment.php +++ b/plugins/data.attachment.php @@ -120,6 +120,8 @@ function data_attachment( $pData, $pParams, $pCommonObject, $pParseHash ) { return $ret; } + $att = array(); + if( is_a( $pCommonObject, 'LibertyMime' ) && !($att = $pCommonObject->getAttachment( $pParams['id'], $pParams )) ) { $ret = tra( "The attachment id given is not valid." ); return $ret; @@ -196,4 +198,3 @@ function data_attachment( $pData, $pParams, $pCommonObject, $pParseHash ) { $ret = $gBitSmarty->fetch( $gLibertySystem->getMimeTemplate( 'attachment', $mimehandler )); return $ret; } -?> |
