Código PHP:
function retrieve_entity_info($record, $module)
{
parent::retrieve_entity_info($record, $module);
if ( $record )
{
$rs = $GLOBALS['adb']->query("SELECT privado FROM activity_extra WHERE activityid = $record");
$row = $rs->FetchRow(); //122
$this->privado = (bool)$row['privado'];
}
else
{
$this->privado = false;
}
}
Me da el siguiente error:
Fatal error: Call to a member function FetchRow() on a non-object in C:\stopcrm\htdocs\stopcrm\modules\Activities\Activ ity.php on line 122
Alguien sabe por que?