Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 9704cab

Browse files
committed
Added areaid filter
1 parent b95ed95 commit 9704cab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/EZComments/Api/User.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ public function getall($args = array())
6363
// object id
6464
if (isset($args['mod'])) {
6565
$whereclause[] = "$columns[modname] = '" . DataUtil::formatForStore($args['mod']) . "'";
66+
if (isset($args['areaId'])) {
67+
$whereclause[] = "$columns[areaid] = '" . DataUtil::formatForStore($args['areaId']) . "'";
68+
} elseif (isset($args['areaid'])) {
69+
$whereclause[] = "$columns[areaid] = '" . DataUtil::formatForStore($args['areaid']) . "'";
70+
}
6671
if (isset($args['objectid'])) {
6772
$whereclause[] = "$columns[objectid] = '" . DataUtil::formatForStore($args['objectid']) . "'";
6873
}

0 commit comments

Comments
 (0)