Changeset 1669

Show
Ignore:
Timestamp:
06/29/2010 01:01:03 PM (3 years ago)
Author:
BrianKoontz
Message:

Fixed notices. Probably not the best fix, but this ticket has been
languishing for 6 weeks. Refs #447.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.3/formatters/wakka.php

    r1641 r1669  
    10401040                        foreach ( $hints as $hint ) 
    10411041                        { 
    1042                                 $temp = $attributes[$hint]; 
    1043                                 if ($temp) $a = $temp[$key]; 
    1044                                 if ($a) break; 
     1042                                if(isset($temp) && isset($temp[$key])) 
     1043                                { 
     1044                                        $temp = $attributes[$hint]; 
     1045                                        if ($temp) $a = $temp[$key]; 
     1046                                        if ($a) break; 
     1047                                } 
    10451048                        } 
    10461049         
    1047                         if (!$a) 
     1050                        if (!isset($a)) 
    10481051                        { 
    10491052                                //This attribute isn't allowed here / is wrong.