$condition_decision_date = AssessDays($array_conditions['condition_decision_date']);
 }
 if ($array_conditions['condition_decision_date'] == "0000-00-00") {
     $condition_decision_date = "- None -";
 } else {
     $condition_decision_date = "Approval Date: " . date("j M Y", $condition_decision_date);
 }
 if ($array_conditions['company_name'] != NULL) {
     $company_name = $array_conditions['company_name'];
 } elseif ($array_conditions['condition_type'] == "Informative Only") {
     unset($company_name);
 } else {
     $company_name = $pref_practice;
 }
 if ($current_ref != $array_conditions['condition_ref']) {
     $pdf->ln(10);
     $pdf->SetFont('Helvetica', 'b', 12);
     $condition_ref_print = "Planning Reference: " . $array_conditions['condition_ref'];
     if ($array_conditions['condition_link'] != NULL) {
         $pdf->Cell(105, 7.5, $condition_ref_print, B, 0, L, false, $array_conditions['condition_link']);
     } else {
         $pdf->Cell(105, 7.5, $condition_ref_print, B, 0);
     }
     $pdf->Cell(0, 7.5, $condition_decision_date, B, 1);
     StyleBody(10);
 }
 $pdf->SetFont('Helvetica', B, 10);
 $pdf->Cell(15, 5, $array_conditions['condition_number'], T, 0, '', true);
 $pdf->SetFont('Helvetica', '', 10);
 $pdf->Cell(45, 5, $condition_submitted, T, 0, '', true);
 $pdf->Cell(45, 5, $condition_approved, T, 0, '', true);