summaryrefslogtreecommitdiff
path: root/tdd
diff options
context:
space:
mode:
Diffstat (limited to 'tdd')
-rw-r--r--tdd/tdd-bootstrap.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tdd/tdd-bootstrap.php b/tdd/tdd-bootstrap.php
index b1b89a9..551c9ed 100644
--- a/tdd/tdd-bootstrap.php
+++ b/tdd/tdd-bootstrap.php
@@ -261,7 +261,9 @@ class BoardDB {
public function __construct($timestampFile = '.tdd-timestamps.cache', $dbFile = '.tdd-records.cache') {
$this->__timestampFile = $timestampFile;
$this->__dbFile = $dbFile;
- $this->__database = unserialize(file_get_contents($this->__dbFile));
+ if (file_exists($this->__dbFile)) {
+ $this->__database = unserialize(file_get_contents($this->__dbFile));
+ }
$this->refreshBoardDatabase();
}