Answer the question
In order to leave comments, you need to log in
What is the problem Notice: Undefined index?
How to solve the problem? The site displays:
Notice: Undefined index: user_id in /home/admin/web/defaultdomain/public_html/inc/variables.php on line 8
Notice: Undefined index: user_hash in /home/admin/web/defaultdomain/public_html/inc/variables.php on line 9
Notice: Undefined index: section in /home/admin/web/defaultdomain/public_html/inc/variables.php on line 11
$user_id = (int) $_COOKIE['user_id'];
$user_hash = $_COOKIE['user_hash'] ? $db->escape($_COOKIE['user_hash']) : 2;
$cat_name = $_GET['section'] ? $_GET['section'] : 'likes';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question