1 (edited by PhaxeNor 2008-02-26 23:46)

Topic: [SOLVED] Notice eval()'d code error

I know that you don't support help with extensions yet, but I really need help.

I can't seem to find out how to fix this problem with an extension that im working on.

Notice: Undefined index: page in C:\WebService\www\punbb-1.3-dev\index.php(30) : eval()'d code on line 6

        <hook id="in_start">
        if($_GET["page"] == 'test')

It's the first time I try to build an extension so need some help please.


Re: [SOLVED] Notice eval()'d code error

isset is your friend.
Moved to Programming, since this is a very basic PHP thing, not a 1.3 related thing (other than the context).

3 (edited by PhaxeNor 2008-02-26 23:46)

Re: [SOLVED] Notice eval()'d code error

So you can't use the $_GET[''] function in the xml file. Hmm, oh well. Works fine with an extra file smile

Thanks Smartys

Re: [SOLVED] Notice eval()'d code error

Uh, no. You're getting an undefined index notice because $_GET['page'] isn't set. You need to make sure it is using isset before you can compare its value.