aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-06-11 22:56:56 +0000
committerplegall <plg@piwigo.org>2011-06-11 22:56:56 +0000
commitfee39e9b2088edef4f81aafd776a7e3942569814 (patch)
tree8088e68f207284e0bc9f60616a0570fb09bc9535
parented82c5b0af73cff8ed4f2b6a32dd2a34e4b61231 (diff)
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
-rw-r--r--admin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin.php b/admin.php
index 43a0d37e0..f79540146 100644
--- a/admin.php
+++ b/admin.php
@@ -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();
}