Hi!
I just tried to write some code which was intended to create a new
person from a style element. Basically, this works fine, but I get a
fatal error from the on_created hook, which was traceable to can_do() in
auth.php. The error (forgot to copy it again) was that an object of the
type stdClass couldn't be used as an array. The line in question is:
&& $_MIDGARD['sitegroup'] != 0
So I did var_dump($_MIDGARD); in the style code and saw that it was
indeed an object. The funny thing is now that I did a second
var_dump($_MIDGARD); at the beginning of my code-init, and there
$_MIDGARD is an array.
So, my question is: Is this intentional? If so, where exactly does
$_MIDGARD become an object? And more importantly: Why does it behave
like this? To me, this seems like the perfect opportunity to introduce
subtle db corruptions, especially if you only log errors to the file and
don't display them on site.
Bye,
Andreas
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user