On 2007-05-21 at 18:46 -0700, Phil Pennock wrote: > This is a bug when there is no widget with the supplied name; the value > for the type can't be calculated. The code which loops over the widgets > doesn't notice that the widget doesn't really exist and the code which > produces a stringification doesn't handle it. Is it better for the $widgets associative array to pretend that such a key doesn't exist, or to acknowledge that it does exist with undefined value? Previous patch implemented the latter. This patch implements the former, keeping the "undefined" fallback around just in case there's another bug. Intuitively, the $widgets array shouldn't pretend that nodes don't exist, but then there's conflicting behaviour with getpmwidgets() which returns an empty string. I leave the decision to those with more experience. -Phil