summaryrefslogtreecommitdiff
path: root/view_component.php
diff options
context:
space:
mode:
Diffstat (limited to 'view_component.php')
-rwxr-xr-xview_component.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/view_component.php b/view_component.php
index 2940441..f82a5c2 100755
--- a/view_component.php
+++ b/view_component.php
@@ -37,6 +37,12 @@ $gContent->addHit();
$gContent->loadXrefInfo();
$gBitSmarty->assign( 'gXrefInfo', $gContent->mXrefInfo );
+$isKitlocker = (bool)$gBitDb->getOne(
+ "SELECT COUNT(*) FROM `".BIT_DB_PREFIX."liberty_xref` WHERE `content_id`=? AND `item`='KLID'",
+ [ $gContent->mContentId ]
+);
+$gBitSmarty->assign( 'isKitlocker', $isKitlocker );
+
// Stock levels for this component, calculated from movement xrefs
if( $gContent->isValid() ) {
$X = BIT_DB_PREFIX;