I'm getting these errors when loggin in on the site:
登录网站时我收到这些错误:
PHP Notice: Undefined index: name in C:\xampp\htdocs\ebuy\catalog\controller\module\boss_megamenu.php on line 173
PHP注意:未定义的索引:第173行的C:\ xampp \ htdocs \ ebuy \ catalog \ controller \ module \ boss_megamenu.php中的名称
PHP Notice: Undefined index: image in C:\xampp\htdocs\ebuy\catalog\controller\module\boss_megamenu.php on line 177
PHP注意:未定义的索引:第177行的C:\ xampp \ htdocs \ ebuy \ catalog \ controller \ module \ boss_megamenu.php中的图像
PHP Notice: Undefined index: category_id in C:\xampp\htdocs\ebuy\catalog\controller\module\boss_megamenu.php on line 178
PHP注意:第178行的C:\ xampp \ htdocs \ ebuy \ catalog \ controller \ module \ boss_megamenu.php中的未定义索引:category_id
Does anyone know how to solve this issue?
有谁知道如何解决这个问题?
1 个解决方案
#1
1
Use either
使用其中之一
-
@$variable
- Only use this if it doesn't matter if the variable is set - @ $ variable - 如果设置了变量并不重要,则只使用它
-
isset($variable){ // some code }
- use this if the variable has to be set - isset($ variable){// some code} - 如果必须设置变量,请使用此选项
#1
1
Use either
使用其中之一
-
@$variable
- Only use this if it doesn't matter if the variable is set - @ $ variable - 如果设置了变量并不重要,则只使用它
-
isset($variable){ // some code }
- use this if the variable has to be set - isset($ variable){// some code} - 如果必须设置变量,请使用此选项