From d178419c66fb1950aee7dc8e012c35f12f2a44bc Mon Sep 17 00:00:00 2001 From: nicosomb Date: Wed, 17 Apr 2013 15:32:57 +0200 Subject: README, CREDITS & chmod --- inc/db.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'inc/db.php') diff --git a/inc/db.php b/inc/db.php index a1674ea7..60d7c108 100644 --- a/inc/db.php +++ b/inc/db.php @@ -10,15 +10,13 @@ class db { var $handle; - function __construct($path) - { + function __construct($path) { $this->handle = new PDO($path); $this->handle->exec('CREATE TABLE IF NOT EXISTS "entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE , "title" VARCHAR, "url" VARCHAR UNIQUE , "is_read" INTEGER DEFAULT 0, "is_fav" INTEGER DEFAULT 0, "content" BLOB)'); $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } - public function getHandle() - { + public function getHandle() { return $this->handle; } } \ No newline at end of file -- cgit v1.2.3