fixed fatal error: unsupported operand typ

This commit is contained in:
Ralf Becker 2010-08-16 14:57:36 +00:00
parent a5b73a08ee
commit 587ffbcf28

View File

@ -48,7 +48,7 @@
try { try {
$definition_obj = new importexport_definition($content['definition']); $definition_obj = new importexport_definition($content['definition']);
if($content['dry-run']) { if($content['dry-run']) {
$definition_obj->plugin_options = $definition_obj->plugin_options + array('dry_run' => true); $definition_obj->plugin_options = (array)$definition_obj->plugin_options + array('dry_run' => true);
} }
$plugin = new $definition_obj->plugin; $plugin = new $definition_obj->plugin;
$file = fopen($content['file']['tmp_name'], 'r'); $file = fopen($content['file']['tmp_name'], 'r');