Array must be indexed
Hi there. I got the error mentioned above trying to compile my plugin. Here's my code. What am I doing wrong?
Spoiler
|
Re: Array must be indexed
PHP Code:
If so, the code should look like: PHP Code:
|
Re: Array must be indexed
Quote:
|
Re: Array must be indexed
Quote:
This is wrong. Containi returns the position at which req_tag was found inside name, which can be 0 if the name starts with the tag. The value for "not found" is -1 which you need to check for explicitly: PHP Code:
|
Re: Array must be indexed
Ah, yes, thank you Nextra, i totally forgot about that. :) Sometimes I mix equali and containi return value for some reason.
|
Re: Array must be indexed
Oh. Well, I'll modify and retest it. Thanks, guys!
|
| All times are GMT -4. The time now is 13:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.