Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
67bf68ce
Commit
67bf68ce
authored
Nov 19, 2018
by
Okhin
Browse files
Fixing the CSV imports
parent
d7f61fc3
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment