Issue 273 in wolfcms: Page::hasContent() returns trim() error

4 views
Skip to first unread message

wol...@googlecode.com

unread,
Dec 6, 2010, 4:49:30 PM12/6/10
to wolfcms...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

wol...@googlecode.com

unread,
Jan 3, 2011, 5:03:22 PM1/3/11
to wolfcms...@googlegroups.com

Comment #1 on issue 273 by mrbrooksrox: Page::hasContent() returns trim()
error
http://code.google.com/p/wolfcms/issues/detail?id=273

I made a patch that seemed to fix the issue for me. See attached.

Attachments:
Page.php.patch 401 bytes

Reply all
Reply to author
Forward
0 new messages