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

Update view.php #180

Merged
merged 4 commits into from
Apr 11, 2022
Merged

Update view.php #180

merged 4 commits into from
Apr 11, 2022

Conversation

diplopito
Copy link
Contributor

When $type = 'ReJSON-RL', a warning is displayed: "Notice: Undefined variable: size in view.php on line 116." This is a small patch while reJson is added to library.

When `$type = 'ReJSON-RL'`, a warning is displayed: "Notice: Undefined variable: size in view.php on line 116." This is a small patch while reJson is added to library.
Copy link
Owner

@erikdubbelboer erikdubbelboer left a comment

Choose a reason for hiding this comment

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

$size is used as a number lower in the code. I would prefer $size to default to -1 and change <?php echo $size?> to print Unknown when $size < 0.

Extended `if` code (didn't want to nest ternary operators).
Default statement updated.
@erikdubbelboer erikdubbelboer merged commit 0866ff2 into erikdubbelboer:master Apr 11, 2022
@erikdubbelboer
Copy link
Owner

Thanks!

erikdubbelboer added a commit that referenced this pull request Apr 11, 2022
* 0866ff2 Update view.php (#180) (diplopito)
@diplopito
Copy link
Contributor Author

Graag gedaan! Would you be open to extend it to cover reJSON? A few dependencies should be added by the user (according to selected reJSON library).

@erikdubbelboer
Copy link
Owner

I'm always open for pull requests. But I think it should be optional and just be automatically disabled when then user doesn't have the dependency.

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