Support Forums - Classified Ads Script Osclass
Osclass Market
Download Osclass
Documentation
Home
Help
Search
Login
Register
Undefined offset: 0 notice
Support Forums - Classified Ads Script Osclass
Osclass theme support
Free themes
Tatiana Osclass Responsive Theme
Undefined offset: 0 notice
Match all words
Match any words
Most relevant results first
Largest topics first
Smallest topics first
Most recent topics first
Oldest topics first
Advanced
Print
Pages: [
1
]
mkallini
13 posts
Undefined offset: 0 notice
«
on:
April 15, 2016, 04:46:54 AM »
Hi
I get this notice when loading categories and sub categories at the bottom of the sidebar.
Notice: Undefined offset: 0 in /home/pcwar146/public_html/absclick.com/oc-content/themes/tatiana/search.php on line 194
The statement on line 194 shows:
$current_cat = $current_cat['0'];
any help, would be much appreciated.
Logged
mk
MB Themes
Support team
18720 posts
Only quality matters
Download Osclass
Re: Undefined offset: 0 notice
«
Reply #1 on:
April 15, 2016, 06:52:48 AM »
@mkallini
Undefined notice does not represent errors, you should have notices notifications disabled on your hosting.
Fix is simple, replace line with:
Code:
[Select]
$current_cat = isset($current_cat['0']) ? $current_cat['0'] : '';
Logged
To get fast support, we need following details:
Detail description, URL to reproduce problem, Screenshots
Print
Pages: [
1
]