Логи ошибок - 8: Undefined index: permissions 828

Автор maks47, 12 декабря 2012, 00:45:53

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

maks47

Подскажите - логи ошибок выдают ниже приведенное.
по данной ссылке
_http://www.xxx.ru/forum/index.php?action=dlattach;attach=3005;type=avatar

Именно для строки 828. Что это значит?
Спасибо.

Цитировать
808:    function allowedTo($permission, $boards = null)
809:    {
810:    
global $user_info, $modSettings, $smcFunc;
811:    
812:    
// You're always allowed to do nothing. (unless you're a working man, MR. LAZY :P!)
813:    
if (empty($permission))
814:    
return true;
815:    
816:    
// You're never allowed to do something if your data hasn't been loaded yet!
817:    
if (empty($user_info))
818:    
return false;
819:    
820:    
// Administrators are supermen :P.
821:    
if ($user_info['is_admin'])
822:    
return true;
823:    
824:    
// Are we checking the _current_ board, or some other boards?
825:    
if ($boards === null)
826:    
{
827:    
Check if they can do it.
==>828:    
if (!is_array($permission) && in_array($permission, $user_info['permissions']))
829:    
return true;
830:    
// Search for any of a list of permissions.
831:    
elseif (is_array($permission) && count(array_intersect($permission, $user_info['permissions'])) != 0)
832:    
return true;
833:    
// You aren't allowed, by default.
834:    
else
835:    
return false;
836:    
}
837:    
elseif (!is_array($boards))
838:    
$boards = array($boards);
839:    
840:    
$request = $smcFunc['db_query']('', '
841:    
SELECT MIN(bp.add_deny) AS add_deny
842:    
FROM {db_prefix}boards AS b
843:    
INNER JOIN {db_prefix}board_permissions AS bp ON (bp.id_profile = b.id_profile)
844:    
LEFT JOIN {db_prefix}moderators AS mods ON (mods.id_board = b.id_board AND mods.id_member = {int:current_member})
845:    
WHERE b.id_board IN ({array_int:board_list})
846:    
AND bp.id_group IN ({array_int:group_list}, {int:moderator_group})
847:    
AND bp.permission {raw:permission_list}
848:    
AND (mods.id_member IS NOT NULL OR bp.id_group != {int:moderator_group})