From f8c91e04a1659a7c19312b9b739193c4c1cd37fe Mon Sep 17 00:00:00 2001 From: Brandon Bergren <bdragon@rtk0.net> Date: Tue, 15 Jul 2008 20:09:17 +0000 Subject: [PATCH] fix E_ALL compliance issues in gmap_markerinfo.inc. --- gmap_markerinfo.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gmap_markerinfo.inc b/gmap_markerinfo.inc index 045903b..3599377 100644 --- a/gmap_markerinfo.inc +++ b/gmap_markerinfo.inc @@ -177,7 +177,7 @@ function _gmap_compress_icon_def($iconset) { for ($c1=0; $c1<count($iconset); $c1++) { $temp = isset($iconset[$c1][$order[$c0]]) ? $iconset[$c1][$order[$c0]] : $nulls[$c0]; // Ensure that numeric quantities are encoded as ints, not strings. - if ($ints[$c0]) { + if (isset($ints[$c0])) { $temp = (int)$temp; } $a[$c0][$c1] = $temp; @@ -199,6 +199,9 @@ function _gmap_compress_icon_def($iconset) { * Remove trailing duplicates from an array. */ function _gmap_compress_array(&$arr) { + if (empty($arr)) { + return; + } $c = count($arr) - 1; // Walk backwards and unset duplicates... for ($cval = $arr[$c]; $c>0; $c--) { -- GitLab