diff options
author | David Rothstein <drothstein@gmail.com> | 2013-03-10 15:44:11 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-03-10 15:44:11 -0400 |
commit | 851bcf12f0304adf5d9a0ee988848002809e6ca3 (patch) | |
tree | e681f6454c76956d4f1dde75d46d5478dd17507a /modules/system | |
parent | b5d7ec61998fcb0d21ceabdce41ff0d5c58648c6 (diff) | |
download | brdo-851bcf12f0304adf5d9a0ee988848002809e6ca3.tar.gz brdo-851bcf12f0304adf5d9a0ee988848002809e6ca3.tar.bz2 |
Issue #1475342 by iamEAP | Kasper Souren: Fixed D6->D7 upgrade: system_update_7007() fail.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 59bb2f14a..341a1f24a 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1890,7 +1890,7 @@ function system_update_7007() { $result = db_query("SELECT rid, perm FROM {permission} ORDER BY rid ASC"); $query = db_insert('role_permission')->fields(array('rid', 'permission')); foreach ($result as $role) { - foreach (explode(', ', $role->perm) as $perm) { + foreach (array_unique(explode(', ', $role->perm)) as $perm) { $query->values(array( 'rid' => $role->rid, 'permission' => $perm, |