When a message has to be displayed and it is an array, as when all comments are deleted for a user, then this is showed to the user with a print_r, which let the user think it is some debug ouptut left over.
The displaying is done in /include functions.php
function xoops_error($msg, $title = '')
If it is an array of messages, they should be showed in a nice list in stead of dumped.
(Kind of loop with intermediate
If it is an object, would it be to match asked that the object contains a function to render itself (its messages)?
Then there could be something like