*
* @license http://nucleuscms.org/license.txt GNU General Public License
* @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: PLUGIN.php,v 1.12.2.2 2007-12-03 01:15:07 kmorimatsu Exp $
- * $NucleusJP: PLUGIN.php,v 1.12.2.1 2007/09/05 07:40:59 kimitake Exp $
+ * @version $Id: PLUGIN.php,v 1.12.2.3 2007-12-03 02:22:42 kmorimatsu Exp $
+ * $NucleusJP: PLUGIN.php,v 1.12.2.2 2007/12/03 01:15:07 kmorimatsu Exp $
*/
class NucleusPlugin {
}
mysql_free_result($res);
- return $this->_aOptionToInfo[$key]['oid'];
+ return @$this->_aOptionToInfo[$key]['oid'];
}
function _getDefVal($context, $name) {
$key = $context . '_' . $name;
$meta = NucleusPlugin::getOptionMeta($o->oextra);
// if the option is readonly or hidden it may not be saved
- if (($meta['access'] != 'readonly') && ($meta['access'] != 'hidden')) {
+ if ((@$meta['access'] != 'readonly') && (@$meta['access'] != 'hidden')) {
$value = undoMagic($value); // value comes from request
}
// check the validity of numerical options
- if (($meta['datatype'] == 'numerical') && (!is_numeric($value))) {
+ if ((@$meta['datatype'] == 'numerical') && (!is_numeric($value))) {
//the option must be numeric, but the it isn't
//use the default for this option
$value = $o->odef;