Permalink
Browse files

properly check for the presence of the design response

  • Loading branch information...
1 parent 982ce90 commit d8a88e86622e88126cfecbdf8adc3c696e202dda @rmarianski committed Sep 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 application/controllers/admin/reports.php
@@ -976,7 +976,7 @@ function edit( $id = false, $saved = false )
// fetch design response
$design_response_obj = ORM::factory('design_response')->where('incident_id', $incident->id)->find();
- if ($design_response_obj) {
+ if ($design_response_obj->id > 0) {
$design_response = $design_response_obj->text;
} else {
$design_response = '';

0 comments on commit d8a88e8

Please sign in to comment.