From: bugreport%peshkin.net <> Date: Sat, 31 Jul 2004 09:48:26 +0000 (+0000) Subject: relnotes update for Bug 253588 changes deprecating defined(Bugzilla->user) X-Git-Tag: bugzilla-2.18rc3~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b178b70079c494368494934ff212c70f6b43a43b;p=thirdparty%2Fbugzilla.git relnotes update for Bug 253588 changes deprecating defined(Bugzilla->user) a=justdave --- diff --git a/docs/rel_notes.txt b/docs/rel_notes.txt index a379404fb3..ab56635e69 100644 --- a/docs/rel_notes.txt +++ b/docs/rel_notes.txt @@ -286,8 +286,11 @@ Code Changes Which May Affect Customizations - Use Bugzilla->user->login in place of $::COOKIE{Bugzilla_login} -- You can tell if there's a user logged in or not by checking if - Bugzilla->user exists rather than looking for $::userid==0 +- You can tell if there's a user logged in or not by using + Bugzilla->user rather than looking for $::userid==0. + In new 2.18 code, use defined(Bugzilla->user) && (Bugzilla->user->id) + In 2.20, this will become just (Bugzilla->user->id) + In templates, always test [% IF user.id %] rather than [% IF user %] Recommended Practice for the Upgrade