Skip to content

Commit 0121c41

Browse files
committed
isEth bug fixed
1 parent fbe2ca0 commit 0121c41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

service/lib/ethplorer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,14 +1146,15 @@ public function getLastTransfers(array $options = array(), $showEth = FALSE){
11461146

11471147
if(isset($options['token']) && isset($options['history'])){
11481148
$search['contract'] = $options['token'];
1149+
}elseif(!$showEth){
1150+
$search['contract'] = array('$ne' => 'ETH');
11491151
}
11501152

11511153
$sort = array("timestamp" => -1);
11521154

11531155
if(isset($options['timestamp']) && ($options['timestamp'] > 0)){
11541156
$search['timestamp'] = array('$gt' => $options['timestamp']);
11551157
}
1156-
if(!$showEth) $search['contract'] = array('$ne' => 'ETH');
11571158
$limit = isset($options['limit']) ? (int)$options['limit'] : false;
11581159
$cursor = $this->oMongo->find('operations', $search, $sort, $limit);
11591160

0 commit comments

Comments
 (0)