function e_activist_get_campaign_nid fails if Drupal site installed with table prefix.

Error returned:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mytableprefix.e_activist_campaign' doesn't exist: SELECT nid FROM e_activist_campaign WHERE e_activist_client_id = :client AND e_activist_campaign_id = :campaign; Array ( [:client] =>#### [:campaign] => ##### ) in e_activist_get_campaign_nid() (line 158 of /var/www/mydrupalsiteroot/sites/all/modules/e_activist/e_activist.content.inc).

Comments

subspaceeddy’s picture

Status: Active » Needs review
StatusFileSize
new744 bytes

Patch for above