Fixed  canBypassUserPrivacy call

S

Syndol

Guest
#1
In the user model (Model/User.php) line 2003:
PHP:
if ($this->canBypassUserPrivacy($viewingUser))
{
    return true;
}
should be

PHP:
if ($this->canBypassUserPrivacy($null, $viewingUser))
{
    return true;
}
as the function being called is

PHP:
canBypassUserPrivacy(&$errorPhraseKey = '', array $viewingUser = null)
line 1878 of same file

Took me many hours to track this one down :cry:
 
Top