Re: PHP Notice Errors

Joe Stewart <[email protected]> Sun, 19 Oct 2003 07:25:02 +0200
Newsgroups gmane.comp.cms.phpslash.devel
Message-ID <[email protected]>
On Sun, Oct 19, 2003 at 12:52:21AM -0400, Evan Hughes wrote:
<snip > 
> > > > Index: lib.resources.php
> > > > ===================================================================
> > > > RCS file: /cvsroot/back-end/back-end0.5.x/class/lib.resources.php,v
> > > > retrieving revision 1.4
> > > > diff -r1.4 lib.resources.php
> > > > 444c444
> > > > <    $ans = $GLOBALS['_PSL']['resources'][$urn] ? true : false;
> > > > ---
> > > > >    $ans = @$GLOBALS['_PSL']['resources'][$urn] ? true : false;
> > >
> > > This is one of those screwy php things.  Anybody got a better way to get
> > > rid of the warning?
> 
>   An isset (or a friend thereof) would probably work. 
> 
> e

uh duh.  Sorry I thought was one of those places where you are defining an
array value and it complains about the index.

Joe


-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com