Quote:
Originally Posted by Dismounted
How is your page coded?
|
This is happening inside a function:
PHP Code:
function insert_story($thread_id, $story_url, $language_id, $category_id, $description, &$error_description)
{
global $vbulletin;
$username = $vbulletin->userinfo['username'];;
$user_id = $vbulletin->userinfo['userid'];
// first we must check if there is already a story with this thread ID
$sql_thread_id = ("SELECT thread_id FROM story WHERE (thread_id=$thread_id)");
$sql_thread_id_data = $vbulletin->db->query_first( $sql_thread_id );
. . .
The "$username" is OK while the "$user_id" is not.