aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-06-11 22:57:21 +0000
committerplegall <plg@piwigo.org>2011-06-11 22:57:21 +0000
commit144535f9b256c2ccd91f80cc46290c2e7335f801 (patch)
treec4106abd7fb5826fd5861cdab21f1fd1fadec725 /admin.php
parentfba51f08ab8aa931d5a2e288efb809cc468b8af9 (diff)
merge r11328 from branch 2.2 to trunk
bug 2339 fixed: admin.php calls sync_users() only if external_authentification is true, not at random git-svn-id: http://piwigo.org/svn/trunk@11329 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin.php b/admin.php
index 18e0b31ad..a47280a9b 100644
--- a/admin.php
+++ b/admin.php
@@ -72,7 +72,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();
}