Commit e2569226 authored by Armando Luescher's avatar Armando Luescher Committed by GitHub

Merge pull request #122 from diasporg/fixmasters

fix masterversion
parents f59e84ac 86ec45ce
......@@ -222,7 +222,7 @@ foreach ($pods as $pod) {
_debug('Uptime', $uptime);
try {
$masterversion = R::getCell('SELECT version FROM masterversions WHERE software = ?', [$softwarename]);
$masterversion = R::getCell('SELECT version FROM masterversions WHERE software = ? ORDER BY id DESC LIMIT 1', [$softwarename]);
} catch (\RedBeanPHP\RedException $e) {
die('Error in SQL query: ' . $e->getMessage());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment