From b59916c222a3b48762f8cd1fec7227e7978be76d Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Mon, 2 May 2011 07:30:03 -0400
Subject: [PATCH] Issue #879076 by ceardach, alex_b: Do not set expired=0 where expired is already 0.

---
 modules/system/system.module |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/system/system.module b/modules/system/system.module
index 21b23f4c223ecf3e7fd2a53a2dd348b67110a320..981a127e29a0bd2c3566df7f3792caf0aa996263 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -3017,6 +3017,7 @@ function system_cron() {
     ->fields(array(
       'expire' => 0,
     ))
+    ->condition('expire', 0, '<>')
     ->condition('expire', REQUEST_TIME, '<')
     ->execute();
 }
-- 
1.7.4.1

