Hello,
For eventhandler extension plugin debugging purposes, I need to check the sql requests generated.
For regular posts, I use $request = $core->blog->getPosts(['sql_only'=>true]) to get the sql request.
When I want to do the same with eventHandler->getEvents, I get an error, because the $rs returned by $this->core->blog->getPosts($params,$count_only) is a string instead of a record and lines 159 and 160 in class.eventhandler.php try to access $res as a record.
My fix to this issue is to enclose lines 159 & 160 with a condition test
Hello, For eventhandler extension plugin debugging purposes, I need to check the sql requests generated.
For regular posts, I use $request = $core->blog->getPosts(['sql_only'=>true]) to get the sql request. When I want to do the same with eventHandler->getEvents, I get an error, because the $rs returned by $this->core->blog->getPosts($params,$count_only) is a string instead of a record and lines 159 and 160 in class.eventhandler.php try to access $res as a record.
My fix to this issue is to enclose lines 159 & 160 with a condition test
Hope this will help! Regards, Nurbo