Skip to content

Commit

Permalink
Issue solving
Browse files Browse the repository at this point in the history
previewict#2 issue has been solved.
  • Loading branch information
sohelrana820 committed Mar 16, 2015
1 parent 4409141 commit 32bc08e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenErp/OpenErp.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ public function search($model, $data, $offset = 0, $limit = 1000)
}
$ids = [];
$response = $response['value'];

if(sizeof($response) === 1){
return (int)$response['int'];
}

foreach ($response as $value) {
if(array_key_exists('int', $value)){
$ids[] = (int)$value['int'];
Expand Down

0 comments on commit 32bc08e

Please sign in to comment.