Advertisement:

Author Topic: [SOLVED] Depreciated function in hSecurity.php - error  (Read 211 times)

BritWeb

  • Hero Member
  • *****
  • Posts: 679
  • If it ain't broke, don't fix it.
[SOLVED] Depreciated function in hSecurity.php - error
« on: April 17, 2019, 02:18:05 pm »
Hi

I am putting together and testing a site with Debug on using bender theme and I have errors as shown in the pic attached. Is this something the developers are aware of that we should ignore? Any feedback welcome.

Thanks
« Last Edit: April 24, 2019, 02:04:58 am by BritWeb »

BritWeb

  • Hero Member
  • *****
  • Posts: 679
  • If it ain't broke, don't fix it.
Re: Depreciated function in hSecurity.php - error
« Reply #1 on: April 24, 2019, 02:04:14 am »
SOLVED

On the 'search-sidebar.php'

...replaced the following

Code: [Select]
     $category = __get("category");
     if(!isset($category['pk_i_id']) ) {
         $category['pk_i_id'] = null;
     }

...with the one below

Code: [Select]
     $category = (array) __get("category");
     if(!isset($category['pk_i_id']) ) {
         $category['pk_i_id'] = null;
     }