For some reason this does not work:
$category->setIsActive(false);
You must use this instead:
$category->setIsActive(0);
Posted by Mike Whitby to Magento (2012-05-15 10:20)
For some reason this does not work:
$category->setIsActive(false);
You must use this instead:
$category->setIsActive(0);