This happens because the code that initialize the variable ($id) is not executed all times; it's enough to move that code ($id = xmlsitemap_cache_id()) before the IF-statement.

Comments

avpaderno’s picture

Status: Active » Fixed

The code has been changed in CVS.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Title: xmlsitemap_output() references a not initialized variables » xmlsitemap_output() references a not initialized variable
Status: Closed (fixed) » Active

The last committed code still references a not initialized variable.

Anonymous’s picture

Status: Active » Fixed

The suggested change has been committed to CVS.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.