From 3555c01b2492d480b2042e4d8e3708ef3c899c1c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 19:15:02 +0000 Subject: [PATCH] Adding some debug stuff to figure out why PHP5 is weird --- includes/cachev.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/cachev.php b/includes/cachev.php index 5f52dd3..97a6b39 100644 --- a/includes/cachev.php +++ b/includes/cachev.php @@ -324,9 +324,16 @@ class cacheV $latestrev = -1; foreach ($history['log']['logentry'] AS $log) { + // WHY THE HELL DOES THIS GET HIT ON REBUILDS? + if (!is_array($log)) + { + print_r($node); + var_dump($log); + continue; + } $loglist["$log[revision]"] = array( 'revision' => $log['revision'], - 'author' => $log['author']['value'], + 'author' => $log['author']['value'], // why does PHP5 hate this? 'date' => $log['date']['value'], 'message' => $log['msg']['value'] ); -- 2.22.5