[wp-trac] [WordPress Trac] #11057: Notice: Undefined index: cat in canonical.php on line 128
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 1 08:47:11 UTC 2009
#11057: Notice: Undefined index: cat in canonical.php on line 128
------------------------------+---------------------------------------------
Reporter: dd32 | Owner: westi
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Warnings/Notices | Version: 2.9
Severity: normal | Keywords: has-patch
------------------------------+---------------------------------------------
Comment(by dd32):
Thats what empty() is being used for.
isset() And empty() do not issue the undefined warnings, Isset is good
when you just want the index to be set, empty() is better when you want it
to be set, and have a non-empty value.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11057#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list