Skip to content

Conversation

@mrrobot47
Copy link
Member

Closes #159

Signed-off-by: Riddhesh Sanghvi riddheshsanghvi96@gmail.com

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
@mrrobot47 mrrobot47 self-assigned this Oct 9, 2018

if ( $enabled && ! $disabled ) {
$sites = Site::where( 'site_enabled', true );
$sites = Site::where( 'site_enabled', 1 );
Copy link
Contributor

Choose a reason for hiding this comment

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

I think here true/false is makes more sense. So you can maybe update it in where function. Like if you know that we are not storing the value in sqlite with true/false and it's 1/0 then you can do this in where function.

if ( is_bool( $value ) ) {
   $value =  (int) $value;
} 

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that will be better.

@mrrobot47
Copy link
Member Author

Closing in favour of EasyEngine/easyengine#1242

@mrrobot47 mrrobot47 closed this Oct 10, 2018
@mrrobot47 mrrobot47 deleted the fix/GH#159 branch October 10, 2018 10:50
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.

2 participants