17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 754 Views |
-
Bug in forum

17 July 2007 at 9:18pm Last edited: 17 July 2007 9:23pm
There is a bug in the forum module:
Fatal error: Call to a member function setField() on a non-object in /sites/ssopen/www/forum/code/Forum.php on line 641
The problem is that it is not checked if $post is really set. You should at least change line 627 from
else user_error('A valid post was not specified. We pass the Post ID through now, creating a blank post on ReplyForm. Dumb, but necessary for uploading attachments.', E_USER_ERROR);
to
if(!issset($post))
user_error('A valid post was not specified. We pass the Post ID through now, creating a blank post on ReplyForm. Dumb, but necessary for uploading attachments.', E_USER_ERROR);
| 754 Views | ||
|
Page:
1
|
Go to Top |

