Skip to content

Commit

Permalink
Fix logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 25, 2016
1 parent 408ab7b commit 7282b90
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -310,7 +310,7 @@ public function getAttachment($object_id, $attachment_id)
public function getObjectIds()
{
$result = $this->_data->getObjectIds();
if (count($result < 20)) {
if (count($result) < 20) {
$ids = '[' . join(', ', $result) . ']';
} else {
$ids = '[too many to list]';
Expand All @@ -334,7 +334,7 @@ public function getObjectIds()
public function getObjects()
{
$result = $this->_data->getObjects();
if (count($result < 20)) {
if (count($result) < 20) {
$ids = '[' . join(', ', array_keys($result)) . ']';
} else {
$ids = '[too many to list]';
Expand All @@ -358,7 +358,7 @@ public function getObjects()
public function getObjectsByBackendId()
{
$result = $this->_data->getObjectsByBackendId();
if (count($result < 20)) {
if (count($result) < 20) {
$ids = '[backend ids: ' . join(', ', array_keys($result)) . ']';
} else {
$ids = '[too many to list]';
Expand Down

0 comments on commit 7282b90

Please sign in to comment.