If you happen to know who took the picture, we'd be happy to give due credit.
If you happen to know who took the picture, we'd be happy to give them due credit.
Are both the sentences grammatically correct? Do both of them mean the same thing? Is the Them necessary in the sentence?