summaryrefslogtreecommitdiffstats
path: root/autobuild/results.php
diff options
context:
space:
mode:
Diffstat (limited to 'autobuild/results.php')
-rw-r--r--autobuild/results.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 08dd674..41e98b5 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -31,7 +31,7 @@ while (false !== ($entry = readdir($handle))) {
closedir($handle);
sort($runs);
-$latestlinks = array_values(glob("cauldron/*/core/latest"));
+$latestlinks = glob("cauldron/*/core/latest");
$latest = 0;
foreach ($latestlinks as $link) {
$date = readlink($link);
@@ -65,7 +65,7 @@ if ($handle = opendir('/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/')
$prev_failure = Array();
if ($prev) {
- $status_name = array_values(glob("cauldron/*/core/$prev/status.core.log"))[0];
+ $status_name = array_shift(glob("cauldron/*/core/$prev/status.core.log"));
$status_file = fopen($status_name, "r");
while (!feof($status_file)) {
$line = fgets($status_file);
@@ -86,7 +86,7 @@ $fixed = Array();
$removed = Array();
$broken = Array();
-$base_dir = array_values(glob("cauldron/*/core/$run"))[0];
+$base_dir = array_shift(glob("cauldron/*/core/$run"));
$status_name = "$base_dir/status.core.log";
if (!file_exists($status_name)) {