New issue 273 by he...@elbert.ca: Page::hasContent() returns trim() error
http://code.google.com/p/wolfcms/issues/detail?id=273
In 0.7.0 RC1, a layout call for Page::hasContent() returns an error.
Example:
<?php if($this->hasContent('sidebar')) echo '<div
id="sidebar">'.$this->content('sidebar').'</div>'; ?>
Returns this error:
Warning: trim() expects parameter 1 to be string, object given in
/domains/handcraftcreative.com.wolf/http/wolf/app/models/Page.php on line
359
I made a patch that seemed to fix the issue for me. See attached.
Attachments:
Page.php.patch 401 bytes