diff options
author | Patrick Webster <noxwizard@gmail.com> | 2014-11-01 11:49:50 -0500 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2014-11-01 19:12:28 +0100 |
commit | c3aca59cfb58ffc40f8e85f57513c75530abbd18 (patch) | |
tree | 1e20c9404050a7784aa98be143df0bfd5ed903ab /phpBB/phpbb/db | |
parent | 3f3c8d74e8501e59e4e6ace3fa87ef3d29b78117 (diff) | |
download | forums-c3aca59cfb58ffc40f8e85f57513c75530abbd18.tar forums-c3aca59cfb58ffc40f8e85f57513c75530abbd18.tar.gz forums-c3aca59cfb58ffc40f8e85f57513c75530abbd18.tar.bz2 forums-c3aca59cfb58ffc40f8e85f57513c75530abbd18.tar.xz forums-c3aca59cfb58ffc40f8e85f57513c75530abbd18.zip |
[ticket/13268] Properly append ternary result in get_existing_indexes()
PHPBB3-13268
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r-- | phpBB/phpbb/db/tools.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php index 0781d7425e..c8d25f23a2 100644 --- a/phpBB/phpbb/db/tools.php +++ b/phpBB/phpbb/db/tools.php @@ -2643,7 +2643,7 @@ class tools AND cols.id = ix.id WHERE ix.id = object_id('{$table_name}') AND cols.name = '{$column_name}' - AND INDEXPROPERTY(ix.id, ix.name, 'IsUnique') = " . ($unique) ? '1' : '0'; + AND INDEXPROPERTY(ix.id, ix.name, 'IsUnique') = " . ($unique ? '1' : '0'); } else { @@ -2657,7 +2657,7 @@ class tools AND cols.object_id = ix.object_id WHERE ix.object_id = object_id('{$table_name}') AND cols.name = '{$column_name}' - AND ix.is_unique = " . ($unique) ? '1' : '0'; + AND ix.is_unique = " . ($unique ? '1' : '0'); } break; |