*

Gabriel Popa

  • ***
  • 46 posts
of receiving this error in the debugge?
« on: May 01, 2016, 10:14:56 PM »
Europe/Bucharest] PHP Notice: Undefined offset: 0 in /home/anunturi/public_html/oc-content/plugins/advertisement_manager/index.php on line 277

 //Category check
  $cat = osc_search_category_id();
  $cat = $cat[0];


 Europe/Bucharest] PHP Notice: Undefined offset: 0 in /home/anunturi/public_html/oc-content/plugins/advertisement_manager/index.php on line 122

//Get banner from group
function get_advert( $id ) {
  $cat = osc_search_category_id();
  $cat = $cat[0];

*

MB Themes

Re: of receiving this error in the debugge?
« Reply #1 on: May 02, 2016, 07:25:45 AM »
@Gabriel
Go to file:
oc-content/plugins/advertisement_manager/index.php

Find line:
Code: [Select]
$cat = $cat[0];
Replace with:
Code: [Select]
$cat = isset($cat[0]) ? $cat[0] : '';
You need to do it twice.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Gabriel Popa

  • ***
  • 46 posts
Re: of receiving this error in the debugge?
« Reply #2 on: May 02, 2016, 08:02:06 AM »
thank you