James,
What does the code look like surrounding the code you provided? I whipped up a test plugin that successfully uses the code you provided for both logged in users and site guests. It was also in 1.7.1. (I just tested against an existing action in the database).
Thanks Erik
Here’s the code I used to test:
<?php
$plugin_info = array(
'pi_name' => 'For James',
'pi_version' => '1',
'pi_author' => 'Erik Reagan',
'pi_author_url' => '',
'pi_description' => 'Testing something for James',
'pi_usage' => ''
);
class For_james
{
public $return_data = "";
public function For_james()
{
global $FNS;
$this->return_data = $FNS->fetch_action_id('Member','update_un_pw');
}
}I dumped the user session data to verify that I tested with logged in users and guests.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.