diff options
Diffstat (limited to 'view.php')
-rwxr-xr-x | view.php | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 | } | ||
41 | else { | ||
42 | die('error in view call'); | ||
35 | } \ No newline at end of file | 43 | } \ No newline at end of file |