Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2012 at 11:05 UTC
Updated:
5 Sep 2012 at 15:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hejazee commentedMaybe this is a php bug, however I could solve it by applying this patch which just replaces a line of code with another equivalent line.
- if (!property_exists($object, $field)) {
+ if (!isset($object->$field)) {
Comment #3
Anonymous (not verified) commentedproperty_exists(object, property) is not the same as isset(object->property). A property can exist but is NULL.