php – Notice: undefined index: identifier I can not find the error

You make this mistake in several parts of my home page. But I do not know how to solve it. The error and the corresponding line of code follow.

Notice: Undefined index: identifier in /home3/.../helpers-general.php on line 1112

Part of the code containing line 1112:

function foodbakery_set_transient_obj ($ variable_variable, $ data_string, $ time = 12) {
if (! isset ($ _ COOKIE['identifier']) || $ _COOKIE['identifier'] (Ie.
setcookie (& # 39; identifier, uniqid (), time () + (86400 * 30), "/"); // 86400 = 1 day
}
$ result = & # 39 ;;
$ identifier = & # 39;
$ identifier = $ _COOKIE['identifier']; // <==== line 1112
$ time_string = $ time * HOUR_IN_SECONDS;
if ($ data_string! = & # 39;) {
$ result = set_transient ($ identifier. $ default_variable, $ data_string, $ data_string);
}
return $ result;
}