Miri4ever wrote:Will keep an eye on that
Code: Select all
[ROOT]/ext/alg/adminnotifications/acp/acp_adminnotifications_module.php on line 35: Invalid argument supplied for foreach()
acp_adminnotifications_module.php
Code: Select all
if (is_array($result) || is_object($result))
{
foreach ($result as $row)
{
$template->assign_block_vars('notysaved', array(
'NOTY_ID' => $row['noty_id'],
'NOTY_TITLE' => $row['noty_title'],
'NOTY_CONTENT' => $row['noty_content'],
'NOTY_TOOLTIP' => $controller->character_limit($row['noty_content'],60) ,
'CREATE_TIME' => $user->format_date($row['create_time'] , "d/m/Y H:i"),
'PARSE_TYPE' => $row['parse_type'],
));
}
}
yes, sure. But what the reason for your mistake? what's your version php? phpbb? what's db you use?Maybe you check yourself
The reasons for my preference is so you're not allocating an empty array when you've got nothing to begin with anyway.
Code: Select all
$result = $db->sql_query($sql);
Code: Select all
<a href="/viewtopic.php?t=5420"><img src="http://forum.volnistye.ru/images/banners/RIO.png" width="61" height="41" alt="forum sponsor" title="forum sponsor /></a>
And it looks like this, with the URL on a separate line.