SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    heaven
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    wtf am I missing

    Someone please explain to me what's wrong with the following cause it doesn't make any sense at all. I'm getting an error that an array index does not exist when a dump the array the key exists and its pissing me off...

    Code:
    Notice:  Undefined index:  resource in /path/to/Core/blah/blah/blah/library/Core/Acl.php on line 75
    Code:
        <allow>
            <a0001 role="guest">
                <r0001 resource="default-index" privileges=""/>
            </a0001>
        </allow>
    PHP Code:
    if( !array_key_exists('resource'$source) ){ 
        
    print_r($source);
        die(
    '**** ME!!!!!');// edited for honest eyes

    Code:
    Array
    (
        [role] => guest
        [r0001] => Array
            (
                [resource] => default-index
                [privileges] => 
            )
    
    )
    **** ME!!!!!
    Creativity knows no other restraint than the
    confines of a small mind.
    - Me
    Geekly Humor
    Oh baby! Check out the design patterns on that framework!

  2. #2
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    heaven
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OMG!!! I hate myself -.-......... nvm
    Creativity knows no other restraint than the
    confines of a small mind.
    - Me
    Geekly Humor
    Oh baby! Check out the design patterns on that framework!

  3. #3
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    *amused*
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •