diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-04-27 18:31:40 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-04-27 18:31:40 +0200 |
commit | 399db1b647e14947e97a865c09215969f56a7efe (patch) | |
tree | 4801fc0482e3e6fe94fd6668dae03b13926b9d17 /bin/moduserprefs.sh | |
parent | d7fcd8ce422a24f794d18e2212163690bf3ca753 (diff) |
Add db_prefix configuration option in place of db_table_*/db_sequence_* options
Make possible to use db_prefix for schema initialization in Installer (#1489067)
Fix updatedb.sh script so it recognizes also table prefix for external DDL files
Diffstat (limited to 'bin/moduserprefs.sh')
-rwxr-xr-x | bin/moduserprefs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/moduserprefs.sh b/bin/moduserprefs.sh index 049372c2f..9bbc885a6 100755 --- a/bin/moduserprefs.sh +++ b/bin/moduserprefs.sh @@ -61,7 +61,7 @@ if ($args['user']) $query = 'user_id=' . intval($args['user']); // iterate over all users -$sql_result = $db->query("SELECT * FROM " . $rcmail->config->get('db_table_users', 'users')." WHERE $query"); +$sql_result = $db->query("SELECT * FROM " . $db->table_name('users') . " WHERE $query"); while ($sql_result && ($sql_arr = $db->fetch_assoc($sql_result))) { echo "Updating prefs for user " . $sql_arr['user_id'] . "..."; |