diff --git a/core/modules/history/history.module b/core/modules/history/history.module index 36e83dd..5b82e28 100644 --- a/core/modules/history/history.module +++ b/core/modules/history/history.module @@ -36,12 +36,7 @@ function history_read($entity_type, $entity_id) { $history = &drupal_static(__FUNCTION__, array()); if (!isset($history[$entity_id])) { - $history[$entity_id] = db_query("SELECT timestamp FROM {history} WHERE uid = :uid AND entity_id = :entity_id AND entity_type = :entity_type", array( - ':uid' => $user->uid, - ':entity_id' => $entity_id, - ':entity_type' => $entity_type, - )) - ->fetchObject(); + $history[$entity_id] = db_query("SELECT timestamp FROM {history} WHERE uid = :uid AND entity_id = :entity_id AND entity_type = :entity_type", array(':uid' => $user->uid, ':entity_id' => $entity_id, ':entity_type' => $entity_type))->fetchObject(); } return (isset($history[$entity_id]->timestamp) ? $history[$entity_id]->timestamp : 0);