Assembla home | Assembla project page
 

Changeset 202

Show
Ignore:
Timestamp:
03/31/08 05:38:57 (8 months ago)
Author:
Slynderdale
Message:

Fixed some minor strict errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Plugin/Abstract/Base.php

    r201 r202  
    7878     */ 
    7979    public $passive = false; 
     80 
     81    /** 
     82     * Flag indicating whether or not the plugin is an admin plugin or not 
     83     * 
     84     * @var bool 
     85     */ 
     86    public $needsAdmin = false; 
    8087 
    8188    /** 
     
    374381                        $data['all']['flags'][] = $flag; 
    375382                        // Handle the flags using bitwise operations. 1=-flag, 2=+flag, 3=Both a plus and minus 
    376                         $data['flags'][$flag] |= (substr($match, 0, 1) === '-' ? 0x1 : 0x2); 
     383                        if (isset($data['flags'][$flag])) { 
     384                            $data['flags'][$flag] |= (substr($match, 0, 1) === '-' ? 0x1 : 0x2); 
     385                    } else { 
     386                        $data['flags'][$flag] = (substr($match, 0, 1) === '-' ? 0x1 : 0x2); 
     387                    } 
    377388                        continue; 
    378389                } 
  • trunk/Phergie/Plugin/Abstract/Command.php

    r200 r202  
    1515    private $methods; 
    1616 
    17     /** 
    18      * Flag indicating whether or not the plugin is an admin plugin or not 
    19      * 
    20      * @var bool 
    21      */ 
    22     public $needsAdmin = false; 
    2317 
    2418    /** 
  • trunk/Phergie/Plugin/Karma.php

    r200 r202  
    319319                    } 
    320320                } else { 
    321                     $this->log[$host][$word]++; 
     321                    if (isset($this->log[$host][$word])) { 
     322                        $this->log[$host][$word]++; 
     323                    } else { 
     324                        $this->log[$host][$word] = 1; 
     325                    } 
    322326                } 
    323327            } 
  • trunk/Phergie/Plugin/ModuleList.php

    r200 r202  
    7070 
    7171        // Help command, return a list of all supprted commands 
    72         if ($args['h']) { 
     72        if (isset($args['h'])) { 
    7373            $message = 'Help Info: '; 
    7474            foreach($this->argList as $arg => $info) { 
     
    9696 
    9797                    // Checks to see if the plugin is a muted plugin or not 
    98                     if ($data->muted[$target] || $data->muted['global']) { 
    99                             $pluginData['Muted'][] = $plugin . ($data->muted['global']?'*':''); 
     98                    if ((isset($data->muted[$target]) && $data->muted[$target]) || 
     99                        (isset($data->muted['global']) && $data->muted['global'])) { 
     100                            $pluginData['Muted'][] = $plugin . ($data->muted['global'] ? '*' : ''); 
    100101                            if ($data->muted['global']) { 
    101102                                $pluginData['Global_Muted'][] = $plugin; 
     
    132133                if ($args['v'] && is_array($pluginData)) { 
    133134                        foreach ($this->verboseList as $key => $value) { 
    134                                 if (is_array($pluginData[$key]) && in_array($plugin, $pluginData[$key])) { 
     135                                if (isset($pluginData[$key]) and is_array($pluginData[$key]) && 
     136                                    in_array($plugin, $pluginData[$key])) { 
    135137                                        $state .= $value; 
    136138                                }