From c8bbe19b3fd2ba268c98561690de37fe599ff055 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Fri, 12 Apr 2013 13:13:21 +0200 Subject: =?UTF-8?q?possibilit=C3=A9=20de=20mettre=20en=20fav=20ou=20en=20a?= =?UTF-8?q?rchive=20un=20article=20depuis=20la=20page=20article?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'view.php') diff --git a/view.php b/view.php index aba1b7ec..75e6c3a9 100755 --- a/view.php +++ b/view.php @@ -31,5 +31,13 @@ if(isset($_GET['id']) && $_GET['id'] != '') { die('query error : '.$e->getMessage()); } - generate_page($entry[0]['url'], $entry[0]['title'], $entry[0]['content']); + if ($entry != NULL) { + generate_page($entry[0]); + } + else { + die('error in view call'); + } +} +else { + die('error in view call'); } \ No newline at end of file -- cgit v1.2.3