Skip to content
Snippets Groups Projects
Commit 9fc39ca7 authored by Andrew Wasson's avatar Andrew Wasson Committed by Damien McKenna
Browse files

Issue #3312595 by awasson, Chase., DamienMcKenna, Anybody: strlen(): Passing...

Issue #3312595 by awasson, Chase., DamienMcKenna, Anybody: strlen(): Passing null to parameter #1 ($string) of type string is deprecated.
parent ade43044
Branches
Tags
No related merge requests found
......@@ -328,7 +328,7 @@ class views_handler extends views_object {
* Returns the safe value.
*/
public function sanitize_value($value, $type = NULL) {
if (strlen($value) > 0) {
if (!is_null($value) && strlen($value) > 0) {
switch ($type) {
case 'xss':
$value = filter_xss($value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment