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

Fix paywall_id cannot be null error #25

Merged
merged 1 commit into from Aug 5, 2016

Conversation

kaldari
Copy link
Collaborator

@kaldari kaldari commented Aug 5, 2016

No description provided.

@cyberpower678
Copy link
Owner

This looks like it might break the bot even further.

@kaldari
Copy link
Collaborator Author

kaldari commented Aug 5, 2016

All I did was move the domain aggregation code outside of the "if( empty( $insertQueryPaywall ) )". Before this, it would only add a single domain name to the insert statement since $insertQueryPaywall would only be empty when processing the first link. Now it adds a domain name to the insert for each link that is processed (assuming it isn't a duplicate). Feel free to test it out yourself.

@cyberpower678
Copy link
Owner

Oh wait, I misread the diff. Sorry.

@cyberpower678 cyberpower678 merged commit 05b0239 into cyberpower678:test Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants