Changeset 481 for trunk/plugins

Show
Ignore:
Timestamp:
06/09/07 21:23:54 (18 months ago)
Author:
michiel
Message:

fix more errors in -dev mode
Re #125

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/altarchive.php

    r463 r481  
    127127                $output .= "<td><select name=\"altarchive_showdefaultcss\">"; 
    128128                $output .= "<option value=\"1\""; 
    129                 if ($this->_settings["altarchive_showdefaultcss"]) 
     129                if (array_key_exists("altarchive_showdefaultcss", $this->_settings) && $this->_settings["altarchive_showdefaultcss"] == 1) 
    130130                        $output .= " selected=\"selected\""; 
    131131                $output .= ">".gettext("yes")."</option>"; 
    132132                $output .= "<option value=\"0\""; 
    133                 if (!$this->_settings["altarchive_showdefaultcss"]) 
     133                if (!array_key_exists("altarchive_showdefaultcss", $this->_settings) || array_key_exists("altarchive_showdefaultcss", $this->_settings) && $this->_settings["altarchive_showdefaultcss"] == 0) 
    134134                        $output .= " selected=\"selected\""; 
    135135                $output .= ">".gettext("no")."</option>";