Bug#109: PHP Notice: in file /portal/block/user_menu.php on line 35: array_diff() [function.array-diff]

This commit is contained in:
Kevin
2008-08-22 22:48:49 +00:00
parent 19e345c4ae
commit fd6e5f74b4

View File

@@ -25,6 +25,8 @@ if (!defined('IN_PORTAL'))
//
if ($user->data['is_registered'])
{
$ex_fid_ary = array_unique(array_merge(array_keys($auth->acl_getf('!f_read', true)), array_keys($auth->acl_getf('!f_search', true))));
if ($auth->acl_get('m_approve'))
{
$m_approve_fid_ary = array(-1);
@@ -41,8 +43,6 @@ if ($user->data['is_registered'])
$m_approve_fid_sql = ' AND p.post_approved = 1';
}
$ex_fid_ary = array_unique(array_merge(array_keys($auth->acl_getf('!f_read', true)), array_keys($auth->acl_getf('!f_search', true))));
$sql = 'SELECT COUNT(distinct t.topic_id) as total
FROM ' . TOPICS_TABLE . ' t
WHERE t.topic_last_post_time > ' . $user->data['user_lastvisit'] . '