Changeset 905

Show
Ignore:
Timestamp:
07/20/08 14:44:00 (3 months ago)
Author:
arnoschn
Message:

fixing a notice error on an undefined $array[0] index

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/arnoschn/cache/lib/AkPlugin/AkPluginManager.php

    r904 r905  
    8080                if(!empty($repository_candidates)){ 
    8181                    foreach ($repository_candidates as $repository_candidate){ 
    82                         if(strlen($repository_candidate) > 0 && $repository_candidate[0] != '#' && strstr($repository_candidate,'plugins')){ 
     82                        if(strlen($repository_candidate) > 0 && isset($repository_candidate[0]) && 
     83                           $repository_candidate[0] != '#' && strstr($repository_candidate,'plugins')){ 
    8384                            $this->repositories[] = $repository_candidate; 
    8485                        } 
     
    197198 
    198199        $plugin_name = Ak::sanitize_include($plugin_name, 'high'); 
    199          
     200 
    200201        $install_method = $this->guessBestInstallMethod($options); 
    201   
     202 
    202203        if($install_method != 'local directory'){ 
    203204            $repository = $this->getRepositoryForPlugin($plugin_name, $repository); 
    204205        } 
    205  
    206206        if(!$options['force'] && is_dir(AK_PLUGINS_DIR.DS.$plugin_name)){ 
    207207            trigger_error(Ak::t('Destination directory is not empty. Use force option to overwrite exiting files.'), E_USER_NOTICE); 
     
    521521 
    522522 
    523      
     523 
    524524    function _shouldUseSvnExternals() 
    525525    { 
     
    545545        `svn update $plugin_dir`; 
    546546    } 
    547      
     547 
    548548    function _installUsingLocalDirectory($name, $path, $rev = null) 
    549549    { 
     
    566566        `svn export $force $rev $uri/$name $plugin_dir`; 
    567567    } 
    568      
     568 
    569569    function _updateUsingExport($name, $uri) 
    570570    { 
     
    582582        $this->_installUsingCheckout($name, $uri, $rev, $force); 
    583583    } 
    584      
     584 
    585585    function _updateUsingExternals($name) 
    586586    { 
    587587        $this->_updateUsingCheckout($name); 
    588588    } 
    589      
     589 
    590590    function _updateUsingHttp($name, $uri) 
    591591    { 
     
    596596        $this->_copyRemoteDir(rtrim($uri, '/').'/'.$name.'/', AK_PLUGINS_DIR); 
    597597    } 
    598      
    599      
     598 
     599 
    600600    function _setExternals($items, $extras = '') 
    601601    { 
     
    638638        $this->_copyRemoteDir(rtrim($uri, '/').'/'.$name.'/', AK_PLUGINS_DIR); 
    639639    } 
    640      
     640 
    641641} 
    642642