Update hooks.php

adding line to force the uid to be set on attributes, causing the following code to be escaped by further if conditions.
Merge pull request #6 from k3nnyfr/patch-1

Update hooks.php