diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-09-01 23:19:50 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-09-01 23:19:50 -0700 |
commit | 545177c648eb2ce98b3ea35688518b9fc7432957 (patch) | |
tree | febb16f4536b39b1984ee5d58cfabbcf6878aecf /modules/gallery/helpers | |
parent | 04f6646b0637d9cb221159b4931b184449a4dc1d (diff) | |
parent | 70c8572ea1b421458241b9b3b1cc85cb6bf35057 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index c6f19ad0..c23bcca8 100644 --- a/modules/gallery/helpers/gallery_installer.php +++ b/modules/gallery/helpers/gallery_installer.php @@ -550,7 +550,9 @@ class gallery_installer { } if ($version == 26) { - $db->query("RENAME TABLE {failed_logins} TO {failed_auths}"); + if (in_array("failed_logins", Database::instance()->list_tables())) { + $db->query("RENAME TABLE {failed_logins} TO {failed_auths}"); + } module::set_version("gallery", $version = 27); } |