From a7501ab220b29e74d1cf92164a1e67b0397fb893 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 23 Jan 2006 04:59:20 +0000 Subject: [PATCH] Need to make sure we aren't dealing with the string HEAD in fetch_revision_context() --- includes/cachev.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/cachev.php b/includes/cachev.php index 608c234..fd9506e 100644 --- a/includes/cachev.php +++ b/includes/cachev.php @@ -200,6 +200,11 @@ class cacheV $data = $this->fetch_node(); $data = $data['history']; + if ($target == 'HEAD') + { + $target = $this->fetch_head_revision(); + } + if (isset($data["$target"])) { return $this->fetch_revision($target); -- 2.43.5