#669 CMS deactivation not working

This commit is contained in:
Ulrich Block 2015-11-01 18:09:13 +01:00
parent f4468a807c
commit 134dda7bb1

View File

@ -269,7 +269,7 @@ if ($loguserip != 'localhost') {
}
}
$query = $sql->prepare("SELECT `active` FROM `modules` WHERE `id`=9 LIMIT 1");
$query = $sql->prepare("SELECT `active` FROM `modules` WHERE `type`='C' AND `get`='pn' AND `sub`='pn' LIMIT 1");
$query->execute();
$page_active = $query->fetchColumn();
$page_active = (active_check($page_active)) ? $page_active : 'Y';