I recently set up a new testbed becuase I wanted to start playing with moodle development. I updated the latest code from the CVS and got this error when trying to view a newly added journal entry. Anyone else run into this?
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /var/www/localhost/htdocs/dev/moodle/mod/journal/view.php on line 48
It appears to me that the following change needs to be made, since empty() only checks variables.
$tempintro = trim($journal->intro);
if (!empty($tempintro))
// if (!empty(trim($journal->intro))) {
{
print_simple_box( format_text($journal->intro, $journal->introformat) , "center");
}
--Rudy