From: skodak Date: Sun, 18 Jan 2009 23:12:14 +0000 (+0000) Subject: MDL-17942 improved mysql truncation prevention X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=200f26cf18b44007157a5c33446436d243fac055;p=moodle.git MDL-17942 improved mysql truncation prevention --- diff --git a/lib/sessionlib.php b/lib/sessionlib.php index 1b159d40de..a3e67917b9 100644 --- a/lib/sessionlib.php +++ b/lib/sessionlib.php @@ -426,7 +426,7 @@ class database_session extends session_stub { } } - if ($record->sessdatahash !== null) { + if ($record->sessdata !== null) { if (md5($record->sessdata) !== $record->sessdatahash) { // probably this is caused by misconfigured mysql - the allowed request size might be too small try {