2013-04-10, 01:48:00
Also you cannot call
getPageField(get_parent(0),'title');
Without wrapping it in a check to make sure parent is not empty, hence the error.
which is what
if (get_parent(0)!='') {
does
but its possible it is returning null instead of '' which the check does not do.
should be
if (!empty(get_parent(0))) {
getPageField(get_parent(0),'title');
Without wrapping it in a check to make sure parent is not empty, hence the error.
which is what
if (get_parent(0)!='') {
does
but its possible it is returning null instead of '' which the check does not do.
should be
if (!empty(get_parent(0))) {