Commit 3ce7c36b authored by Dries's avatar Dries

Issue #2207691 by alexpott: Unnecessary block save in _block_rehash.

parent 141d7d90
......@@ -251,7 +251,7 @@ function _block_rehash($theme = NULL) {
$block->disable()->save();
}
// Set region to none if not enabled.
if (!$status) {
if (!$status && $region != BlockInterface::BLOCK_REGION_NONE) {
$block->set('region', BlockInterface::BLOCK_REGION_NONE);
$block->save();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment