Commit 0af87d0b authored by Manuel Garcia's avatar Manuel Garcia Committed by japerry

Issue #1118134 by Manuel Garcia: Fix php 5.3 notice in export.inc

parent 5bedc2d4
......@@ -559,7 +559,9 @@ function _ctools_export_get_defaults($table, $export) {
if (function_exists($function)) {
foreach ((array) $function($export) as $name => $object) {
// Record the module that provides this exportable.
$object->export_module = $module;
if(is_object($object)) {
$object->export_module = $module;
}
if (empty($export['api'])) {
$cache[$table][$name] = $object;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment