Closed (fixed)
Project:
Node Hierarchy
Version:
6.x-1.2
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2009 at 09:14 UTC
Updated:
9 Feb 2009 at 20:55 UTC
I just downloaded the latest version (9-feb) and saw in the diff that you use @ instead of isset().
- while ($parent->nid) {
+ while (@$parent->nid) {
is this better than:
while (isset($parent->nid) && $parent->nid)
Comments
Comment #1
ronan commentedIt's not better, but it's quicker to type and easier to look at. It's also more or less equivalent since it should merely suppress the warning and return NULL for non-existent members.
Comment #2
andreiashu commentedthanks for the info ronan.