From 82216d3a27de2f4ff615820bee404e618dc43ca3 Mon Sep 17 00:00:00 2001 From: Tom Misilo <misilot@fit.edu> Date: Tue, 26 Jul 2016 16:18:01 -0400 Subject: [PATCH] Convert null values to blank strings to avoid DB errors. - Resolves VUFIND-1124. --- module/VuFind/src/VuFind/Auth/CAS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Auth/CAS.php b/module/VuFind/src/VuFind/Auth/CAS.php index 4fd2a760327..a6c76571738 100644 --- a/module/VuFind/src/VuFind/Auth/CAS.php +++ b/module/VuFind/src/VuFind/Auth/CAS.php @@ -142,7 +142,7 @@ class CAS extends AbstractBase if (isset($cas->$attribute)) { $value = $casauth->getAttribute($cas->$attribute); if ($attribute != 'cat_password') { - $user->$attribute = $value; + $user->$attribute = ($value === null) ? '' : $value; } else { $catPassword = $value; } -- GitLab