BUG 9180 Error unserializing APP_DATA with null value

Error
-----
Error unserializing APP_DATA with null value

Solution
--------
Verify if the APP_DATA contains serialized NULL before trying to unserialize
The APP_DATA with NULL serialized = "N;" is generated with the function PMFNewCaseImpersonate
This commit is contained in:
Herbert Saal Gutierrez
2012-06-26 10:49:07 -04:00
parent c3c11adc3f
commit dac87f1d8c
2 changed files with 22 additions and 4 deletions

View File

@@ -1277,7 +1277,7 @@ class AppSolr
}
// get the serialized fields
if (! empty ($documentData ['APP_DATA'])) {
if (! empty ($documentData ['APP_DATA']) && $documentData ['APP_DATA'] != "N;" ) {
$UnSerializedCaseData = unserialize ($documentData ['APP_DATA']);