google-code-export / yii-user

Automatically exported from code.google.com/p/yii-user
1 stars 1 forks source link

Undefined variable: list #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sorry for my bad english :)

What steps will reproduce the problem?
1. Go to user/profileField/admin
2. Delete profile field
3. Got "Undefined variable: list"

What version of the product are you using? On what operating system?
yii-user-0.2-r52

To fix it, you must change one of this files:
1. views/profileField/_menu.php
2. views/profileField/index.php

1. At line 5 from "if (count($list)) {" to "if (isset($list) && count($list)) {"
Or
2. At line 9 from "<?php echo $this->renderPartial('_menu'); ?>" to "<?php echo 
$this->renderPartial('_menu',array('list'=> array(),));?>"

IMHO, I'll fixing _menu.php :)

Original issue reported on code.google.com by iksm...@gmail.com on 3 Sep 2010 at 5:10

GoogleCodeExporter commented 9 years ago
Mmm... At the other server I don't get this error. Maybe it depends on server 
config. But fixing _menu.php IMHO good thing :)

Original comment by iksm...@gmail.com on 4 Sep 2010 at 5:16

GoogleCodeExporter commented 9 years ago
#r54

Original comment by mish...@gmail.com on 20 Sep 2010 at 10:19