aboutsummaryrefslogtreecommitdiffhomepage
path: root/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'view.php')
-rwxr-xr-xview.php10
1 files changed, 9 insertions, 1 deletions
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'] != '') {
31 die('query error : '.$e->getMessage()); 31 die('query error : '.$e->getMessage());
32 } 32 }
33 33
34 generate_page($entry[0]['url'], $entry[0]['title'], $entry[0]['content']); 34 if ($entry != NULL) {
35 generate_page($entry[0]);
36 }
37 else {
38 die('error in view call');
39 }
40}
41else {
42 die('error in view call');
35} \ No newline at end of file 43} \ No newline at end of file