From 047cb6845fb1a7cbd4e8adf4d68cfc46eec7804f Mon Sep 17 00:00:00 2001 From: Ammar Yasir Date: Sun, 21 Aug 2011 23:04:13 +0530 Subject: [PATCH] Fixed: Not selecting a datalabel used to issue a notice(undefined offset) --- tbl_zoom_select.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tbl_zoom_select.php b/tbl_zoom_select.php index a565768a31..2352fc1fb7 100644 --- a/tbl_zoom_select.php +++ b/tbl_zoom_select.php @@ -369,8 +369,10 @@ if(isset($zoom_submit) && $inputs[0] != 'pma_null' && $inputs[1] != 'pma_null' & $row['where_clause'] = $uniqueCondition[0]; if($dataLabel == $inputs[0] || $dataLabel == $inputs[1]) $data[] = array($inputs[0] => $row[$inputs[0]], $inputs[1] => $row[$inputs[1]], 'where_clause' => $uniqueCondition[0]); - else + else if($dataLabel) $data[] = array($inputs[0] => $row[$inputs[0]], $inputs[1] => $row[$inputs[1]], $dataLabel => $row[$dataLabel], 'where_clause' => $uniqueCondition[0]); + else + $data[] = array($inputs[0] => $row[$inputs[0]], $inputs[1] => $row[$inputs[1]], $dataLabel => '', 'where_clause' => $uniqueCondition[0]); } ?> -- 2.11.4.GIT