[RSS Feed/News] \XFI\Import\Importer\vBulletin4::getContentTypeId() does not respect packageid

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
PHP:

Code:
protected function getContentTypeId($contentType)
{
    if (empty($this->session->extra['contentTypeId']))
    {
        $this->session->extra['contentTypeId'] = $this->sourceDb->fetchPairs("
            SELECT class, contenttypeid
            FROM contenttype
        ");
    }

    return $this->session->extra['contentTypeId'][$contentType];
}

This code does assume that field class in table contenttype is unique - this is not necessarily the...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom