Hi all,
I've setup Migx to hold several text entries i use a snippet to pick 1 entrie random.
I have this in a snippet to get the entries
$strJSON = $modx->resource->getTVValue('MyMIGXtv');
$arrJSON = $modx->fromJSON($strJSON);
$amt = count($arrJSON);
even when nothing has been filled in, in the TV (so no Items in the MIGX) $amt returns 1
why is that? Am i doing something wrong?