Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use case-insensitive compare for table names #59

Merged
merged 2 commits into from Jul 3, 2017
Merged

Use case-insensitive compare for table names #59

merged 2 commits into from Jul 3, 2017

Conversation

aschempp
Copy link
Member


foreach ($schema->getTableNames() as $tableName) {
if (0 !== strpos($tableName, $needle)) {
if (0 !== strpos(strtolower($tableName), $needle)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be much easier to use stripos()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh well 🙈 😂

@leofeyer leofeyer merged commit 9bf4156 into contao:hotfix/4.4.1 Jul 3, 2017
leofeyer added a commit that referenced this pull request Sep 14, 2018
@aschempp aschempp deleted the hotfix/4.4-dbcase branch January 9, 2020 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants