Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Intelliants
E-commerce Script
Commits
0585977c
Commit
0585977c
authored
Sep 07, 2017
by
Artem M.
Browse files
Minor fix.
parent
0bb6f66c
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/classes/ia.front.product.php
View file @
0585977c
...
...
@@ -121,15 +121,15 @@ class iaProduct extends abstractModuleFront
return
$row
?
$row
[
0
]
:
false
;
}
public
function
getByMemberId
(
$id
,
$start
,
$limit
,
$order
)
public
function
getByMemberId
(
$id
,
$start
,
$limit
,
$order
,
$hidden
=
true
)
{
return
$this
->
_get
(
'p.`member_id` = '
.
(
int
)
$id
,
$start
,
$limit
,
$order
);
return
$this
->
_get
(
'p.`member_id` = '
.
(
int
)
$id
,
$start
,
$limit
,
$order
,
$hidden
);
}
protected
function
_get
(
$where
=
null
,
$start
,
$limit
,
$order
=
null
)
protected
function
_get
(
$where
=
null
,
$start
,
$limit
,
$order
=
null
,
$hidden
=
true
)
{
$where
||
$where
=
iaDb
::
EMPTY_CONDITION
;
$where
.
=
' AND p.`status` != :hidden'
;
$where
.
=
$hidden
?
' AND p.`status` != :hidden'
:
' AND '
.
iaDb
::
EMPTY_CONDITION
;
$this
->
iaDb
->
bind
(
$where
,
[
'hidden'
=>
self
::
STATUS_HIDDEN
,
'member_id'
=>
isset
(
$userId
)
?
$userId
:
0
]);
...
...
index.php
View file @
0585977c
...
...
@@ -91,7 +91,7 @@ if (iaView::REQUEST_HTML == $iaView->getRequestType()) {
return
iaView
::
accessDenied
();
}
$items
=
$iaProduct
->
getByMemberId
(
iaUsers
::
getIdentity
()
->
id
,
$pagination
[
'start'
],
$pagination
[
'limit'
],
$sorting
);
$items
=
$iaProduct
->
getByMemberId
(
iaUsers
::
getIdentity
()
->
id
,
$pagination
[
'start'
],
$pagination
[
'limit'
],
$sorting
,
false
);
}
$pagination
[
'total'
]
=
$iaProduct
->
getFoundRows
();
...
...
Write
Preview
Supports
Markdown
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