<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">This is more of a f.y.i post because I have no idea if the function was changed. But using node_get_types() returns an object that cannot go to string in this code<br><br>foreach(node_get_types() as $type => $name) {<br> $form[$set][REPORTPOST_NODE_TYPE . $type] = array(<br> '#type' => 'checkbox',<br> '#title' => t($name),<br> '#return_value' => 1,<br> '#default_value' => variable_get(REPORTPOST_NODE_TYPE . $type, 0),<br> );<br><br><br> which causes this error:<br>Object of class stdClass could not be converted to string in F:\wamp5\www\drupal-5.1\includes\form.inc on line 1301.<br><br>and had to be changed to $name->name. This is not the
case in 4.7 for the same code on the same server. This should be noted on the upgrade docs if anyone can confirm. I am not sure if it should be considered a bug as it may have been a designed change.<br><br>php5,mySQL5, Apache2, Windows2000<br><div> </div><div> <div><font face="Arial" size="2">Carl Mc Dade<br>____________________________<br>Web Developer<br><br><br></font></div><div><font face="Arial" size="2"><br> </font></div></div><div><br></div></div><br>
<hr size=1>8:00? 8:25? 8:40? <a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news"> Find a flick</a> in no time<br> with the<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news">Yahoo! Search movie showtime shortcut.</a></body></html>