Permalink
Browse files

More coding style updates. Removed unnecessary white space

  • Loading branch information...
1 parent 77dd7e4 commit 3ea73225eef58b4b54b898143dfdfb6340c1d843 @aoduor aoduor committed May 10, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 application/helpers/customforms.php
@@ -51,13 +51,11 @@ public static function get_custom_form_fields($incident_id = FALSE, $form_id = N
// Query to fetch the form fields associated with the given form id
$sql = "SELECT ff.*, '' AS form_response FROM ".$table_prefix."form_field ff WHERE 1=1 ";
-
if ($form_id != null AND $form_id != '')
{
$sql .= "AND ff.form_id = ".$form_id." ";
}
-
$sql .= "AND ff.field_ispublic_visible ".$public_state." "
. "ORDER BY ff.field_position ASC";
@@ -90,13 +88,10 @@ public static function get_custom_form_fields($incident_id = FALSE, $form_id = N
);
}
}
-
-
// Garbage collection
unset ($form_fields);
-
// Check if the provided incident exists, then fill in the data
if (Incident_Model::is_valid_incident($incident_id))
{
@@ -106,7 +101,6 @@ public static function get_custom_form_fields($incident_id = FALSE, $form_id = N
. "RIGHT JOIN ".$table_prefix."form_response fr ON (fr.form_field_id = ff.id) "
. "WHERE fr.incident_id = ".$incident_id." ";
-
if ($form_id != null AND $form_id != '')
{
$sql .= "AND ff.form_id = ".$form_id." ";

0 comments on commit 3ea7322

Please sign in to comment.