• 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);
    	}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7 create_function deprecated’ is closed to new replies.