From 66d5ea8f9e62005154f509004df6b20f6e68055a Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 22 Feb 2010 09:51:16 +0000 Subject: [PATCH] - fix checklastguid, ignore nogroup/nobody with very high guids (>65500) --- lib/functions/system/function.checklastguid.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/functions/system/function.checklastguid.php b/lib/functions/system/function.checklastguid.php index d221f519..85817590 100644 --- a/lib/functions/system/function.checklastguid.php +++ b/lib/functions/system/function.checklastguid.php @@ -54,7 +54,17 @@ function checkLastGuid($froxlor_guid = 0) foreach($group_guids as $idx => $group) { - $guid = $group[2]; + /** + * nogroup | nobody have very high guids + * ignore them + */ + if($group[0] == 'nogroup' + || $group[0] == 'nobody' + ) { + continue; + } + + $guid = (int)$group[2]; if($guid > $froxlor_guid) {