Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gmap
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
gmap
Commits
f8c91e04
Commit
f8c91e04
authored
16 years ago
by
Brandon Bergren
Browse files
Options
Downloads
Patches
Plain Diff
fix E_ALL compliance issues in gmap_markerinfo.inc.
parent
a78ee44e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gmap_markerinfo.inc
+4
-1
4 additions, 1 deletion
gmap_markerinfo.inc
with
4 additions
and
1 deletion
gmap_markerinfo.inc
+
4
−
1
View file @
f8c91e04
...
@@ -177,7 +177,7 @@ function _gmap_compress_icon_def($iconset) {
...
@@ -177,7 +177,7 @@ function _gmap_compress_icon_def($iconset) {
for
(
$c1
=
0
;
$c1
<
count
(
$iconset
);
$c1
++
)
{
for
(
$c1
=
0
;
$c1
<
count
(
$iconset
);
$c1
++
)
{
$temp
=
isset
(
$iconset
[
$c1
][
$order
[
$c0
]])
?
$iconset
[
$c1
][
$order
[
$c0
]]
:
$nulls
[
$c0
];
$temp
=
isset
(
$iconset
[
$c1
][
$order
[
$c0
]])
?
$iconset
[
$c1
][
$order
[
$c0
]]
:
$nulls
[
$c0
];
// Ensure that numeric quantities are encoded as ints, not strings.
// Ensure that numeric quantities are encoded as ints, not strings.
if
(
$ints
[
$c0
])
{
if
(
isset
(
$ints
[
$c0
])
)
{
$temp
=
(
int
)
$temp
;
$temp
=
(
int
)
$temp
;
}
}
$a
[
$c0
][
$c1
]
=
$temp
;
$a
[
$c0
][
$c1
]
=
$temp
;
...
@@ -199,6 +199,9 @@ function _gmap_compress_icon_def($iconset) {
...
@@ -199,6 +199,9 @@ function _gmap_compress_icon_def($iconset) {
* Remove trailing duplicates from an array.
* Remove trailing duplicates from an array.
*/
*/
function
_gmap_compress_array
(
&
$arr
)
{
function
_gmap_compress_array
(
&
$arr
)
{
if
(
empty
(
$arr
))
{
return
;
}
$c
=
count
(
$arr
)
-
1
;
$c
=
count
(
$arr
)
-
1
;
// Walk backwards and unset duplicates...
// Walk backwards and unset duplicates...
for
(
$cval
=
$arr
[
$c
];
$c
>
0
;
$c
--
)
{
for
(
$cval
=
$arr
[
$c
];
$c
>
0
;
$c
--
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment