if user_info false user_info_other false user_info_other profile_invis

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if ($user_info !== false && $user_info_other !== false && $user_info_other['profile_invisible'] != 1) {
/**
*
* сбор статистики
*
*/
$views = new views($sql);
$views->insert($user_info_other['user_id'], $user_info['user_id']);
}