diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php index f7c7744..5ae4b7a 100755 --- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php +++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php @@ -215,7 +215,7 @@ public function doSetMultiple(array $items) { ); // If maximum expiration is set, enforce an upper limit on the expiry. - if ($max_lifetime != Cache::PERMANENT && ($item['expire'] == Cache::PERMANENT || $item['expire'] > $max_lifetime)) { + if ($max_lifetime !== Cache::PERMANENT && ($item['expire'] === Cache::PERMANENT || $item['expire'] > $max_lifetime)) { $item['expire'] = $max_lifetime; }