summaryrefslogtreecommitdiffstats
path: root/all.php
diff options
context:
space:
mode:
Diffstat (limited to 'all.php')
-rw-r--r--all.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/all.php b/all.php
index 4a5a5ab..26283de 100644
--- a/all.php
+++ b/all.php
@@ -211,11 +211,8 @@ try {
$smarty->assign('owners', $owners);
}
- $sql='SELECT MAX(stamp) AS stamp FROM repo';
- $res=$db->query($sql);
- if ($res && $row=$res->fetchObject()) {
- $smarty->assign('repositories_update', date("r", $row->stamp));
- }
+ $rpmrepo = new TableRpmRepo($db);
+ $smarty->assign('repositories_update', date("r", $rpmrepo->getMaxStamp()));
$smarty->assign('packages', report($db));
} catch(PDOException $e) {