Description
Like eZContentClass does in its constructor, eZContentClassAttribute should also first check if the key is set in the $row array. Otherwise you will get warnings like:
Undefined index: serialized_name_list in c:\sites\ez39php4\kernel\classes\ezcontentclassattribute.php on line 50
These warnings will for example appear when you use a function of eZContentClassAttribute as the the function to return the policy function limitation values (example: attributeedit_policy hack), because kernel/role/edit.php instantiates an object of the specified class first and calls the function on that object.
$obj = new $limitation['class']( array() ); $limitationValueList = call_user_func_array ( array( &$obj , $limitation['function']) , $limitation['parameter'] );
You could say that this behavior should be changed as well, and do a static call.