Skip to content

Commit 17c6b7a

Browse files
committed
Allow get data with custom column name
1 parent 678044a commit 17c6b7a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/SaveHandlers/DatabaseHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ public function read($id) : string
188188
$this->addWhereMatchs($statement);
189189
$row = $statement->limit(1)->run()->fetch();
190190
$this->sessionExists = (bool) $row;
191-
$data = $row->data ?? '';
191+
$column = $this->getColumn('data');
192+
$data = $row->{$column} ?? '';
192193
$this->setFingerprint($data);
193194
return $data;
194195
}

0 commit comments

Comments
 (0)