From 19572a12b6b8348b6ad65b7b67a2fb1640ebcbc9 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Mon, 26 Sep 2016 10:05:57 +1000 Subject: [PATCH] Make compatible with older version of PHP --- admin/set_outcomes.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/admin/set_outcomes.php b/admin/set_outcomes.php index b5cb1360..61403fa5 100644 --- a/admin/set_outcomes.php +++ b/admin/set_outcomes.php @@ -168,21 +168,21 @@ xhtml_head($title,true,$css,$js_head); /* to add customm outcome*/ if (isset($_GET['addoutcome'])){ - $rs[] = ["description" => "", "value" => ""]; + $rs[] = array("description" => "", "value" => ""); $sql = "SELECT outcome_type_id as value,description FROM `outcome_type`"; $ot = $db->GetAll($sql); translate_array($ot, array("description")); $select = display_chooser($ot,"outcome_type_id","outcome_type_id",true,false,false,true,false,false); - $rs[] = ["description" => "", "value" => "{$select}"]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; - $rs[] = ["description" => "", "value" => ""]; + $rs[] = array("description" => "", "value" => "{$select}"); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); + $rs[] = array("description" => "", "value" => ""); $hid = "addoutcome"; $value = "newoutcome"; $h = $_GET['h']; $v = $_GET['v']; $row = array("description","value");