Oh, I wish it were true, but in fact that problem is probably why it didn't work before. I should have thought of making sure that it was right.
Anyway, here we go again

: I found this in class_profileblock.php (the same file where the hook is called):
Code:
$requirements = $this->registry->db->query_read_slave("
SELECT blockid, requirement
FROM " . TABLE_PREFIX . "profileblockprivacy
WHERE userid = " . intval($this->profile->userinfo['userid']) . "
");
So maybe you can use intval($this->profile->userinfo['userid']).