@ Mark
I think I’ve found a little bug. I’m not exactly sure when this happens, first I thought it’s when there is only one parent document with no subdocuments, so nothing to show, but sometimes it’s working sometimes not. The problem is that
$resource is not always and array and when following code is compiled:
$resource = array_values($resource);
the error pop-ups because it can not handle only arrays.
So I’ve added one more validation criteria to
snippet.ditto.php:
There is this code (line 344)
if (count($resource) < 1) { return $emptyText."\n"; }
I have replaced it with:
if (!is_array ($resource) || empty ($resource)) { return $emptyText."\n"; }
Thanks guys!
Boby