OPENUCB-340: Oops! Bug in my last commit - forgot to change all $nid to $result->nid.
Merge pull request #4 from dsnopek/openucb-340

OPENUCB-340: Oops! Bug in my last commit - forgot to change all $nid to $result->nid.