Hello,
I have a strange error when I’m using my own modules :
Creating default object from empty value.
I find out that this error occur when I’m using a $modx->db->query().

The query works but I have this error

and I dont understand what is the problem.
Someone has an idea ?