Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Patch: Fixes 2 minor Reports errors


3 Posts   4709 Views


17 May 2007 at 9:43am Google Summer of Code Hacker, 222 Posts

When running the "Pages edited in the last 2 weeks" report, I get the following errors:

Notice: Trying to get property of non-object in /var/www/silverstripe/sapphire/core/model/SiteTree.php on line 189

Notice: Trying to get property of non-object in /var/www/silverstripe/sapphire/core/model/SiteTree.php on line 190

When running the "Empty pages" report (with no empty pages) I get the following error:

Notice: Undefined variable: result in /var/www/silverstripe/cms/code/SideReport.php on line 31

This patch fixes both of those errors:

Let me know if you'd prefer that I combine undefined variable patches and only submit 1 per day. I don't want to create a lot of extra work for you. ;)

- Elijah


17 May 2007 at 10:04am Core Development Team, 201 Posts

Keep the patches rolling! Great work :-)


17 May 2007 at 10:24am Administrator, 685 Posts

Combined patches would be good - particularly if you're solving a lot of instances of the same kind of problem.