diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-01-11 10:08:15 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-01-11 10:08:15 +0000 |
| commit | 4508706467ec265e7830f83b4a134784d62c5a61 (patch) | |
| tree | 3e922075c1a57e31cfec3d81effffe2c8b541690 | |
| parent | 0769356a6e47529423080d5c36bbc6ee95b9442e (diff) | |
| download | liberty-4508706467ec265e7830f83b4a134784d62c5a61.tar.gz liberty-4508706467ec265e7830f83b4a134784d62c5a61.tar.bz2 liberty-4508706467ec265e7830f83b4a134784d62c5a61.zip | |
only load attachemnt when there is a function to load the plugin with
| -rw-r--r-- | LibertyAttachable.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/LibertyAttachable.php b/LibertyAttachable.php index bb33ee9..933f41d 100644 --- a/LibertyAttachable.php +++ b/LibertyAttachable.php @@ -3,7 +3,7 @@ * Management of Liberty Content * * @package liberty - * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyAttachable.php,v 1.54 2007/01/02 22:26:41 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyAttachable.php,v 1.55 2007/01/11 10:08:15 squareing Exp $ * @author spider <spider@steelsun.com> */ // +----------------------------------------------------------------------+ @@ -343,8 +343,9 @@ Disable for now - instead fend off new uploads once quota is exceeded. Need a ni } foreach( $attachments as $attachment ) { - $loadFunc = $gLibertySystem->getPluginFunction( $attachment['attachment_plugin_guid'], 'load_function' ); - $ret[] = $loadFunc( $attachment ); + if( $loadFunc = $gLibertySystem->getPluginFunction( $attachment['attachment_plugin_guid'], 'load_function' )) { + $ret[] = $loadFunc( $attachment ); + } } // count all entries |
