<pre>when i click on the layer label icon of that widget<br>i recive these warnings and i cannot see any attribute of layers!<br><br>Warning: Invalid argument supplied for foreach() in<br>C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php on line 188
<br><br>Warning: array_keys(): The first argument should be an array in<br>C:\ms4w\apps\chameleon\htdocs\widgets\LayerLabels\LayerLabelsPopup.phtml on line 90</pre>
<br>
<i>------- Additional Comment
<a name="c1" href="http://bugzilla.maptools.org/show_bug.cgi?id=1411#c1">#1</a> From
<a href="mailto:jlacroix@mapgears.com">Julien-Samuel Lacroix</a>
2006-04-11 11:19 -------
</i>
<pre>I'm not currently setup with PoastGIS can ou try this:<br><br>In C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php on line 188:<br><br>Add this if() around the foreach:<br><br>if($oShape->values)<br>{<br>
foreach($oShape->values as $key => $value)<br> {<br> $aszAttributes['fields'][$key] = "string";<br> }<br>}<br>else<br> $aszAttributes['fields'] = array();<br><br>Does it fix the problem?
</pre>
<br>
<i>------- Additional Comment
<a name="c2" href="http://bugzilla.maptools.org/show_bug.cgi?id=1411#c2">#2</a> From
<a href="mailto:chameleon.listserver@gmail.com">skynewbie</a>
2006-04-13 04:52 -------
</i>
<pre>Now i have not errors but in Attributes i can't find valeus!<br><br><br>Here is the bug report: <a href="http://bugzilla.maptools.org/show_bug.cgi?id=1411">http://bugzilla.maptools.org/show_bug.cgi?id=1411</a><br></pre>