diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-02-27 03:15:31 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-02-27 03:15:31 +0000 |
commit | 98d4b284e047f1fcb991935e689192c47fca457c (patch) | |
tree | c6fa3ce45e730e4f764ee913ee1032762f670b2e /admin/include | |
parent | 75bb450a6ece6b2e30ad4c148083b7192d7d7224 (diff) |
- works with PHP5
git-svn-id: http://piwigo.org/svn/trunk@2217 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/functions_check_integrity.inc.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/admin/include/functions_check_integrity.inc.php b/admin/include/functions_check_integrity.inc.php index fe57a02e7..5f409cf84 100644 --- a/admin/include/functions_check_integrity.inc.php +++ b/admin/include/functions_check_integrity.inc.php @@ -78,7 +78,7 @@ function check_integrity() foreach ($page['check_integrity']['list'] as $i => $c13y) { - if (!empty($c13y['correction_fct']) and + if (!empty($c13y['correction_fct']) and $c13y['is_callable'] and in_array($c13y['id'], $_POST['c13y_selection'])) { @@ -96,7 +96,7 @@ function check_integrity() $args = array(); } $page['check_integrity']['list'][$i]['corrected'] = call_user_func_array($c13y['correction_fct'], $args); - + if ($page['check_integrity']['list'][$i]['corrected']) { $corrected_count += 1; @@ -149,7 +149,7 @@ function check_integrity() $ignore_list_changed = ( - ($ignore_list_changed) or + ($ignore_list_changed) or (count(array_diff($page['check_integrity']['ignore_list'], $page['check_integrity']['build_ignore_list'])) > 0) or (count(array_diff($page['check_integrity']['build_ignore_list'], $page['check_integrity']['ignore_list'])) > 0) ); @@ -267,7 +267,7 @@ function display_check_integrity() $template->assign_block_vars('c13y_submit_ignore', array()); } - $template->concat_var_from_handle('ADMIN_CONTENT', 'check_integrity'); + $template->concat_var('ADMIN_CONTENT', $template->parse('check_integrity', true) ); } } @@ -392,7 +392,7 @@ function c13y_user() 'password' => null, 'l10n_non_existent' => 'c13y_default_non_existent'); } - + $c13y_users[$conf['webmaster_id']] = array( 'status' => 'webmaster', 'l10n_non_existent' => 'c13y_webmaster_non_existent', @@ -403,7 +403,7 @@ select u.'.$conf['user_fields']['id'].' as id, ui.status from '.USERS_TABLE.' as u left join '.USER_INFOS_TABLE.' as ui on u.'.$conf['user_fields']['id'].' = ui.user_id -where +where u.'.$conf['user_fields']['id'].' in ('.implode(',', array_keys($c13y_users)).') ;'; @@ -476,7 +476,7 @@ function c13y_correction_user($id, $action) $name .= generate_key(1); } } - + $inserts = array( array( 'id' => $id, |