or a nothing if the user is not logged in. That’s by design.
Yes, that’s by design. But is this a
good design to return "a nothing" when asked for the current user?
And to do that in several ways?
Other than the function we’re talking about the next function ’getLoginUserType’ returns a "nothing" (’ ’) explicitly.
Maybe I’m wrong, but I think error-checking is completely absent in modx0.9. It just forwards PHPengine and MySQL errors.
I don’t think a framework should behave that way. And there are other strange things, with getDocuments for instance:
http://modxcms.com/forums/index.php/topic,5658.msg40337.html#msg40337
I know: 1.0 will fix all that ... It only has to be released.
kind regards!