Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

create_function deprecated #223

Open
bkjproductions opened this issue Feb 15, 2019 · 0 comments
Open

create_function deprecated #223

bkjproductions opened this issue Feb 15, 2019 · 0 comments

Comments

@bkjproductions
Copy link

If you're using PHP7.x you may get an error of create_function deprecated

Somewhere around line 196 of datetimepicker.php

create_function('$var', 'return ! empty($var);') is the problem.
Change that line to
function($var) {return ! empty($var);}

So that section around line 194 reads:

private function options_encode() { $options = json_encode(array_filter( $this->options, function($var) {return ! empty($var);} )); return stripslashes($options); }

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

No branches or pull requests

1 participant