berkes/tagadelic — Issue #23: Issue with tagadelic_page_chunk() and drupal_not_found()
Author: sebrichards
Created: 2011-10-24 01:40:27+00:00
State: open

I have a view that shows a list of nodes, with a tag cloud at the top. I've found that if none of the nodes have been tagged, I get some crazy UI distortions when viewing the page, and the following error when editing the view itself:

```Notice: Trying to get property of non-object in node_page_title() (line 2075 of /var/www/ipad/modules/node/node.module)```

My code in the view header is:
``````

The trouble is caused by the ```tagadelic_page_chunk()``` function returning ```drupal_not_found()``` when there's no output generated - I'm guessing the DOM gets malformed.

Obviously ```drupal_not_found()``` is returned with good reason under usual circumstances, however it doesn't seem appropriate for this use case. Thoughts?