Skip to content

Commit b0b5251

Browse files
committed
Fix issue #21
1 parent 984c856 commit b0b5251

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libraries/Document.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,14 @@ public function refresh() {
254254
$row = $stmt->fetch(PDO::FETCH_OBJ);
255255
$stmt->closeCursor();
256256
self::normalize($row);
257-
$this->label = $row->label;
257+
$this->content = $row->content;
258+
$this->created_datetime = $row->created_datetime;
259+
$this->edited_count = $row->edited_count;
260+
$this->edited_datetime = $row->edited_datetime;
261+
$this->id = $row->id;
262+
$this->options_bitmask = $row->options_bitmask;
263+
$this->title = $row->title;
264+
$this->user_id = $row->user_id;
258265
Common::$cache->set($cache_key, serialize($row), 300);
259266
return true;
260267
} catch (PDOException $e) {

0 commit comments

Comments
 (0)