Another attempt. Solve potential wasted query in get_user()

Just added an if to the else and a return to catch the uid being 0
Replaced else if() with elseif() as advised for conformity.
Merge pull request #124 from WildcardSearch/stable

Solve potential wasted query in get_user()