]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17942 improved mysql truncation prevention
authorskodak <skodak>
Sun, 18 Jan 2009 23:12:14 +0000 (23:12 +0000)
committerskodak <skodak>
Sun, 18 Jan 2009 23:12:14 +0000 (23:12 +0000)
lib/sessionlib.php

index 1b159d40deca3be6a1bf9465b89ce80f31a740df..a3e67917b99c1cb05bae460246a7204ab333690e 100644 (file)
@@ -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 {