OSDN Git Service

Avoid noteces for empty valiables
authorkmorimatsu <kmorimatsu@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 3 Dec 2007 00:01:48 +0000 (00:01 +0000)
committerkmorimatsu <kmorimatsu@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 3 Dec 2007 00:01:48 +0000 (00:01 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/branches/branch-3-3@354 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/showlist.php

index 1c1770b..e5f9c5a 100644 (file)
@@ -14,8 +14,8 @@
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
  * @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: showlist.php,v 1.7.2.2 2007-12-02 23:53:56 kmorimatsu Exp $
- * @version $NucleusJP: showlist.php,v 1.7.2.1 2007/09/05 07:42:37 kimitake Exp $
+ * @version $Id: showlist.php,v 1.7.2.3 2007-12-03 00:01:48 kmorimatsu Exp $
+ * @version $NucleusJP: showlist.php,v 1.7.2.2 2007/12/02 23:53:56 kmorimatsu Exp $
  */
 
 
@@ -274,7 +274,7 @@ function listplug_plugOptionRow($current) {
                        case 'textarea':
                                //$meta = NucleusPlugin::getOptionMeta($current['typeinfo']);
                                echo '<textarea class="pluginoption" cols="30" rows="5" name="',htmlspecialchars($varname),'"';
-                               if ($meta['access'] == 'readonly') {
+                               if (@$meta['access'] == 'readonly') {
                                        echo ' readonly="readonly"';
                                }
                                echo '>',htmlspecialchars($current['value']),'</textarea>';
@@ -284,10 +284,10 @@ function listplug_plugOptionRow($current) {
                                //$meta = NucleusPlugin::getOptionMeta($current['typeinfo']);
 
                                echo '<input type="text" size="40" maxlength="128" name="',htmlspecialchars($varname),'" value="',htmlspecialchars($current['value']),'"';
-                               if ($meta['datatype'] == 'numerical') {
+                               if (@$meta['datatype'] == 'numerical') {
                                        echo ' onkeyup="checkNumeric(this)" onblur="checkNumeric(this)"';
                                }
-                               if ($meta['access'] == 'readonly') {
+                               if (@$meta['access'] == 'readonly') {
                                        echo ' readonly="readonly"';
                                }
                                echo ' />';