diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-09-19 03:06:16 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-09-19 03:06:16 +0000 |
commit | bb07324f762708142f2158da1a8060f9f812c28b (patch) | |
tree | 98f93531d43dd10f31816e14e5b1827bee62eaa2 /admin/include/functions.php | |
parent | b34b7c6b28a7d34488f4ca5947a618be10028b3d (diff) |
- fix: quick search error if the query term contained " or '
- optimized sql query in sync_users (called every time on admin page) - a lot faster when #user_cache_categories is big
- added function Template->delete_block_vars (opposite of assign_block_vars)
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2094 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/functions.php')
-rw-r--r-- | admin/include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 3614c0904..23cf41180 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -1159,7 +1159,7 @@ SELECT user_id foreach ($tables as $table) { $query = ' -SELECT user_id +SELECT DISTINCT user_id FROM '.$table.' ;'; $to_delete = array_diff( @@ -1989,4 +1989,4 @@ UPDATE '.USER_CACHE_TABLE.' pwg_query($query); trigger_action('invalidate_user_cache'); } -?> +?>
\ No newline at end of file |