Skip to content
Snippets Groups Projects
Commit 40925edf authored by Demian Katz's avatar Demian Katz
Browse files

Workarounds for strict SQL standards.

- Resolves VUFIND-996.
parent 6b41dd14
No related merge requests found
......@@ -55,6 +55,13 @@ class Db extends AbstractBase implements \VuFind\Db\Table\DbTableAwareInterface
*/
public function write($data, $userData)
{
// Unset the coded-in datestamp, since the database will auto-generate
// it internally with greater accuracy.
unset($userData['datestamp']);
// Make sure the browser version is a legal length.
$userData['browserVersion'] = substr($userData['browserVersion'], 0, 8);
$this->getTable('UserStatsFields')->save($data, $userData);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment