*

roshan

  • **
  • 8 posts
PHP Debug Error
« on: April 13, 2020, 09:40:01 AM »
What is this error?

PHP Notice: Undefined offset: 0 in /home/web/public_html/oc-content/themes/tatiana/functions.php on line 118

Code: [Select]
 
117 $cat = osc_search_category_id();
118 $cat = $cat[0];
119
120 $reg = osc_search_region();
121 $cit = osc_search_city();

Marked as best answer by frosticek on April 13, 2020, 01:44:40 PM
*

MB Themes

Re: PHP Debug Error
« Reply #1 on: April 13, 2020, 01:35:29 PM »
Change:
Code: [Select]
$cat = $cat[0];
Into:
Code: [Select]
$cat = @$cat[0];
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots