Commit 86ec45ce authored by dmorley's avatar dmorley

fix masterversion

parent f59e84ac
......@@ -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