Parse error: syntax error, unexpected T_OBJECT_OPERATOR..
phildu - August 14, 2007 - 10:02
| Project: | User Handshakes |
| Version: | 5.x-0.9 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | rconstantine |
| Status: | closed |
Jump to:
Description
ihave activae pageroute and nodeprofile but ...
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home.10/arrimage/www/drupal5/sites/all/modules/nf_handshake/nf_handshake.module on line 1208

#1
Thanks for checking this out. I figured there might be errors (maybe dependencies?) that I missed which is why I gave this a 0.9 version number.
Anyway, let me see...
line 1208...
Um, are you using PHP 4.x? Perhaps it doesn't like how I'm using objects in that line.
If you are, a workaround would be to change line 1208 to:
$iusername = db_fetch_object(db_query("SELECT name FROM {users} WHERE uid = %d", $result->iuid));and line 1209 to:
$ausername = db_fetch_object(db_query("SELECT name FROM {users} WHERE uid = %d", $result->auid));and lastly, line 1211 to:
$rows[] = array(array('data' => $iusername->name), array('data' => $ausername->name),Let me know if that does it for you. I didn't even think about PHP4. I'll be glad when Drupal goes to all PHP5 in February!!!
#2
Unless phildu has something to say, this is fixed. Will upload soon.
#3