Alex Savenko
/
semena
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
69bb2148de3f97ccb287ebfa0a9883782eadf5f7
Authored by
Alex Savenko
2016-12-20 19:55:01 +0200
1 parent
5ed26640
prices
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
src/lib/models/discount.php
Inline
Side-by-side
src/lib/models/discount.php
Wrap text
Show/Hide comments
View file @
69bb214
...
...
@@ -66,11 +66,10 @@ class discount extends \db
66
66
SELECT *
67
67
FROM public.discount
68
68
WHERE
69
- id = :id
70
- AND
71
69
current_timestamp > start_date
72
70
AND
73
71
current_timestamp < end_date
72
+ LIMIT 1
74
73
75
74
',
76
75
[
...
...