web/ticket.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 27 Jan 2011 06:13:21 +0000 (14:13 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 27 Jan 2011 06:13:21 +0000 (14:13 +0800)
web/ticket.php

index bc031c5..b02be35 100644 (file)
@@ -117,9 +117,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST')
   } catch (Exception $e) {
     $error[] = $e->getMessage();
   }
+  
   if ($id == 'new') {
-    $comment = $_POST['comment'];
+    $comment = empyt($_POST['comment']) ? '' : $_POST['comment'];
   }
+  
   if (!strlen($comment)) {
     $comment = $_POST['summary'];
   }