Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
F
foodsharing
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
246
Issues
246
List
Boards
Labels
Service Desk
Milestones
Merge Requests
53
Merge Requests
53
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
foodsharing-dev
foodsharing
Commits
e1a20c29
Commit
e1a20c29
authored
Feb 20, 2019
by
Matthias Larisch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace floatval by float cast
parent
1c54a3c0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
src/Lib/Func.php
src/Lib/Func.php
+2
-2
src/Modules/Event/EventGateway.php
src/Modules/Event/EventGateway.php
+2
-2
src/Modules/GeoClean/GeoCleanXhr.php
src/Modules/GeoClean/GeoCleanXhr.php
+2
-2
src/Modules/Login/LoginXhr.php
src/Modules/Login/LoginXhr.php
+2
-2
src/Modules/Map/MapXhr.php
src/Modules/Map/MapXhr.php
+2
-2
No files found.
src/Lib/Func.php
View file @
e1a20c29
...
...
@@ -761,8 +761,8 @@ Verantwortlich für den Inhalt nach § 55 Abs. 2 RStV:<br />
if
(
$pos
=
$this
->
session
->
get
(
'blocation'
))
{
$location
=
[
'lat'
=>
floatval
(
$pos
[
'lat'
])
,
'lon'
=>
floatval
(
$pos
[
'lon'
])
,
'lat'
=>
(
float
)
$pos
[
'lat'
]
,
'lon'
=>
(
float
)
$pos
[
'lon'
]
,
];
}
...
...
src/Modules/Event/EventGateway.php
View file @
e1a20c29
...
...
@@ -99,8 +99,8 @@ class EventGateway extends BaseGateway
return
$this
->
db
->
insert
(
'fs_location'
,
[
'name'
=>
strip_tags
(
$location_name
),
'lat'
=>
floatval
(
$lat
)
,
'lon'
=>
floatval
(
$lon
)
,
'lat'
=>
(
float
)
$lat
,
'lon'
=>
(
float
)
$lon
,
'zip'
=>
strip_tags
(
$zip
),
'city'
=>
strip_tags
(
$city
),
'street'
=>
strip_tags
(
$address
)
...
...
src/Modules/GeoClean/GeoCleanXhr.php
View file @
e1a20c29
...
...
@@ -33,8 +33,8 @@ class GeoCleanXhr extends Control
if
(
!
$this
->
session
->
may
(
'orga'
))
{
return
XhrResponses
::
PERMISSION_DENIED
;
}
$lat
=
floatval
(
$_GET
[
'lat'
])
;
$lon
=
floatval
(
$_GET
[
'lon'
])
;
$lat
=
(
float
)
$_GET
[
'lat'
]
;
$lon
=
(
float
)
$_GET
[
'lon'
]
;
$fsid
=
(
int
)
$_GET
[
'id'
];
if
(
$this
->
model
->
updateGeo
(
$fsid
,
$lat
,
$lon
))
{
...
...
src/Modules/Login/LoginXhr.php
View file @
e1a20c29
...
...
@@ -197,8 +197,8 @@ class LoginXhr extends Control
}
$data
[
'birthdate'
]
=
$birthdate
->
format
(
'Y-m-d'
);
$data
[
'mobile_phone'
]
=
strip_tags
(
$data
[
'mobile_phone'
]
??
null
);
$data
[
'lat'
]
=
floatval
(
$data
[
'lat'
]
??
null
)
;
$data
[
'lon'
]
=
floatval
(
$data
[
'lon'
]
??
null
)
;
$data
[
'lat'
]
=
(
float
)
$data
[
'lat'
]
??
null
;
$data
[
'lon'
]
=
(
float
)
$data
[
'lon'
]
??
null
;
$data
[
'str'
]
=
strip_tags
(
$data
[
'str'
]
??
null
);
$data
[
'plz'
]
=
preg_replace
(
'[^0-9]'
,
''
,
$data
[
'plz'
]
??
null
)
.
''
;
$data
[
'city'
]
=
strip_tags
(
$data
[
'city'
]
??
null
);
...
...
src/Modules/Map/MapXhr.php
View file @
e1a20c29
...
...
@@ -17,8 +17,8 @@ class MapXhr extends Control
public
function
savebpos
()
{
$lat
=
floatval
(
$_GET
[
'lat'
])
;
$lon
=
floatval
(
$_GET
[
'lon'
])
;
$lat
=
(
float
)
$_GET
[
'lat'
]
;
$lon
=
(
float
)
$_GET
[
'lon'
]
;
$this
->
session
->
set
(
'blocation'
,
array
(
'lat'
=>
$lat
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment