fixed syscp-bug #1201 (Virtualusers conflict with local users when using libnss-mysql);

This commit is contained in:
Michael Kaufmann (d00p)
2010-01-25 11:00:50 +00:00
parent 45d75e0402
commit 489e840273
3 changed files with 94 additions and 1 deletions

View File

@@ -259,6 +259,14 @@ if($db->num_rows($result_tasks) != 0)
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_tasks_run\' ');
/*
* we have to check the system's last guid with every cron run
* in case the admin installed new software which added a new user
* so users in the database don't conflict with system users
*/
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Checking system\'s last guid');
checkLastGuid($settings['system']['lastguid']);
/**
* STARTING CRONSCRIPT FOOTER
*/