Sorry, I think that's just the way it was formatted by the forum's text editor when I selected the php tags. This is what it looks like in the file:
Code:
<?php
if (isset($_SESSION) AND is_numeric($_SESSION['admin_id']) AND is_object($reloadedStack) )
{
foreach ($reloadedStack->errors as $message)
{
$messageStack->errors[] = $message;
$messageStack->size += 1;
}
}
The coding is the same as what you posted (expect for spacing), but to be safe, I copied what you posted and pasted it into the file, saved, and uploaded it to the server. Result is the same: a blank login page with the following error log:
PHP Parse error: syntax error, unexpected '{' in admin/includes/init_includes/init_reloadedstack.php on line 1

Originally Posted by
pickupman
@ScriptJunkie
This line should be:
Code:
<?php
if (isset($_SESSION) AND is_numeric($_SESSION['admin_id']) AND is_object($reloadedStack) ){
foreach ($reloadedStack->errors as $message) {
$messageStack->errors[] = $message;
$messageStack->size += 1;
}
}
Not sure if it was a copy and paste error but there needs to a space or line break between the php and if on that line.
Bookmarks