summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autobuild/results.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 5e2875f..7bccbe7 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -34,7 +34,9 @@ sort($runs);
$latestlinks = glob("cauldron/*/core/latest");
$latest = 0;
foreach ($latestlinks as $link) {
- $date = readlink($link);
+ # This is ugly but readlink() returns false even if is_link() returns
+ # true and readlink() as user apache in php cli works.
+ $date = `readlink $link`;
if ($date > $latest) {
$latest = $date;
}