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

[8.0] Fix setTotalRecords when value is zero. #1453 #1454

Closed
wants to merge 1 commit into from

Conversation

SergioReis97
Copy link

Really small and quick fix for this.
Please have a look when you can.

@yajra
Copy link
Owner

yajra commented Oct 20, 2017

Will try to review this asap. Anyways, can you please fix the code style to PSR2. Thanks!

@yajra yajra changed the base branch from master to 8.0 October 20, 2017 02:18
@yajra yajra changed the title Quick fix #1453 [8.0] Fix setTotalRecords when value is zero. #1453 Oct 20, 2017
$this->totalRecords = $this->totalCount();

if ($this->totalRecords) {
if($this->totalRecords===null)
Copy link
Owner

Choose a reason for hiding this comment

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

Please fix the code style to conform to PSR2. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants