Run on vb 4.2.1
got error on installing at code:
<installcode><![CDATA[require_once(DIR . '/includes/class_bootstrap_framework.php');
vB_Bootstrap_Framework::init();
$db->query_write("
UPDATE " . TABLE_PREFIX . "pm AS pm
SET attach = (SELECT COUNT(*) FROM " . TABLE_PREFIX . "attachment WHERE contentid = pm.pmid AND attachment.contenttypeid = " . vB_Types::instance()->getContentTypeId('PMAttachments_PrivateMessage' ) . ")
");]]></installcode>
the script gets NULL for the second WHERE clause:
attachment.contenttypeid = " . vB_Types::instance()->getContentTypeId('PMAttachments_PrivateMessage' )
|