Skip to content

Commit

Permalink
Dev: Fixed issue with malformed tokenAttribute in survey and debug>2
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Mar 18, 2015
1 parent f74e006 commit 00ce03f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7589,7 +7589,7 @@ function getSerialClass($sSerial) {
$aTypes = array('s' => 'string', 'a' => 'array', 'b' => 'bool', 'i' => 'int', 'd' => 'float', 'N;' => 'NULL');

$aParts = explode(':', $sSerial, 4);
return isset($aTypes[$aParts[0]]) ? $aTypes[$aParts[0]] : trim($aParts[2], '"');
return isset($aTypes[$aParts[0]]) ? $aTypes[$aParts[0]] : ( isset($aParts[2]) ? trim($aParts[2], '"') : null);
}

// Closing PHP tag intentionally omitted - yes, it is okay
Expand Down

0 comments on commit 00ce03f

Please sign in to comment.