Changeset 1797

Show
Ignore:
Timestamp:
05/01/06 07:47:31 (7 years ago)
Author:
diego_iastrubni
Message:

more warning cleanups

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r1742 r1797  
    216216  global $db; 
    217217  global $amp_conf; 
     218   
     219  if (!is_dir($amp_conf['AMPWEBROOT'].'/admin/modules')) 
     220  { 
     221      mkdir( $amp_conf['AMPWEBROOT'].'/admin/modules' ); 
     222      return; 
     223  } 
     224   
    218225  $dir = opendir($amp_conf['AMPWEBROOT'].'/admin/modules'); 
    219226  $data = "<xml>"; 
  • freepbx/trunk/amp_conf/htdocs/admin/page.modules.php

    r1742 r1797  
    119119      $online = $this->sortModules($online); 
    120120      foreach(array_keys($online) as $arrkey) { 
     121       
     122        if (!is_array($installed)) 
     123        { 
     124            continue; 
     125        } 
     126             
    121127        // Determine if module is already local 
    122128        if(array_key_exists($arrkey,$installed)) { 
     
    273279    $table = "<table border=1><tr><th>". _("Module")."</th><th>". _("Version")."</th><th>". _("Type") ."</th><th>". _("Category") ."</th><th>". _("Status") ."</th><th>". _("Action") ."</th></tr>"; 
    274280    $table .= $this->html; 
    275     $table .= "</table>"; 
     281      $table .= "</table>"; 
    276282    return $table; 
    277283  }