bug 2339 fixed: admin.php calls sync_users() only if external_authentification is true, not at random

git-svn-id: http://piwigo.org/svn/branches/2.2@11328 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2011-06-11 22:56:56 +00:00
parent ed82c5b0af
commit fee39e9b20
+2 -1
View File
@@ -65,7 +65,8 @@ if (isset($_GET['change_theme']))
// | Synchronize user informations |
// +-----------------------------------------------------------------------+
if (mt_rand(0,9)==0)
// sync_user() is only useful when external authentication is activated
if ($conf['external_authentification'])
{
sync_users();
}