set lastguid to system-lastguid in case there are no customers yet, thx to Sephi
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -46,6 +46,11 @@ function checkLastGuid() {
|
||||
$result = $result_stmt->fetch(PDO::FETCH_ASSOC);
|
||||
$froxlor_guid = $result['fguid'];
|
||||
|
||||
// possibly no customers yet or f*cked up lastguid settings
|
||||
if ($froxlor_guid < Settings::Get('system.lastguid')) {
|
||||
$froxlor_guid = Settings::Get('system.lastguid');
|
||||
}
|
||||
|
||||
$g_file = '/etc/group';
|
||||
|
||||
if (file_exists($g_file)) {
|
||||
|
||||
Reference in New Issue
Block a user