remove debug

This commit is contained in:
Isaac Connor 2020-10-02 15:56:56 -04:00
parent bc5002515e
commit e9d120f032
1 changed files with 0 additions and 2 deletions

View File

@ -116,12 +116,10 @@ class Session {
return true;
}
public function _read($id){
ZM\Logger::Debug("read session" . ($this->db ? true : false));
$sth = $this->db->prepare('SELECT data FROM Sessions WHERE id = :id');
$sth->bindParam(':id', $id, PDO::PARAM_STR, 32);
if ( $sth->execute() and ( $row = $sth->fetch(PDO::FETCH_ASSOC) ) ) {
ZM\Logger::Debug("row: " . print_r($row,true));
return $row['data'];
}
// Return an empty string