Commit 39c8b432 authored by defr's avatar defr Committed by Joel Muzzerall
Browse files

Issue #2384323 by DeFr: Cron WSOD caused by attempt of delete on non-object

parent d0b4558f
......@@ -302,7 +302,9 @@ function field_collection_item_access($op, FieldCollectionItemEntity $item = NUL
*/
function field_collection_item_delete($id) {
$fci = field_collection_item_load($id);
$fci->delete();
if ($fci) {
$fci->delete();
}
}
/**
......
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