Changeset 9901

Show
Ignore:
Timestamp:
11/13/08 06:03:35 (2 months ago)
Author:
afz
Message:

before adding as installed gadget, check gadget is valid or not

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/include/Jaws.php

    r9829 r9901  
    504504        if (count($gs) > 0) { 
    505505            foreach ($gs as $gadget) { 
    506                 if (!in_array($gadget, $ci) && Jaws_Gadget::IsGadgetUpdated($gadget)) { 
    507                     $installedGadgets[$gadget] = $gadget; 
     506                if (file_exists(JAWS_PATH . 'gadgets/' . $gadget . '/Info.php')) { 
     507                    if (!in_array($gadget, $ci) && Jaws_Gadget::IsGadgetUpdated($gadget)) { 
     508                        $installedGadgets[$gadget] = $gadget; 
     509                    } 
    508510                } 
    509511            }