From: Sam Reed Date: Fri, 18 Feb 2011 00:57:39 +0000 (+0000) Subject: Fixup assignment in conditional X-Git-Tag: 1.31.0-rc.0~31939 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=b7b4f15381215e57f3a8338e8e948b0f53ca5082;p=lhc%2Fweb%2Fwiklou.git Fixup assignment in conditional --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 2c5edf9487..0c5e9d3b2f 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1193,7 +1193,8 @@ class SkinTemplate extends Skin { ); } - if ( $user = $this->getRelevantUser() ) { + $user = $this->getRelevantUser(); + if ( $user ) { $id = $user->getID(); $ip = $user->isAnon(); $rootUser = $user->getName();