Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
don
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LQdN interne
don
Commits
67bf68ce
Commit
67bf68ce
authored
Nov 19, 2018
by
okhin
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the CSV imports
parent
d7f61fc3
Pipeline
#2254
failed with stages
in 1 minute and 24 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
216 additions
and
185 deletions
+216
-185
app/controller/admin.php
app/controller/admin.php
+198
-185
src/LQDN/Finder/DonationFinder.php
src/LQDN/Finder/DonationFinder.php
+18
-0
No files found.
app/controller/admin.php
View file @
67bf68ce
This diff is collapsed.
Click to expand it.
src/LQDN/Finder/DonationFinder.php
View file @
67bf68ce
...
...
@@ -32,6 +32,24 @@ class DonationFinder
return
$donations
;
}
/**
* findById
*
* @param int $donationId
*
* @return []
*/
public
function
findById
(
$donationId
)
{
$donationId
=
(
int
)
$donationId
;
$donations
=
[];
$stmt
=
$this
->
connection
->
query
(
"SELECT * FROM dons WHERE id='
$donationId
'"
);
while
(
$donation
=
$stmt
->
fetch
())
{
$donations
[
$donationId
]
=
$donation
;
}
return
$donations
;
}
/**
* Return dons for admins.
*
...
...
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