julien-c / Circular

An open source Buffer app clone
http://circular.io
MIT License
1.03k stars 193 forks source link

Fix issue #49 #59

Closed dhilowitz closed 9 years ago

dhilowitz commented 9 years ago

The issue is related to this: https://jira.mongodb.org/browse/PHP-1051

We just need to surround $app['account']['users'] with array_values():

$m->circular->posts->remove(array( '_id' => new MongoId($id), 'user._id' => array('$in' => array_values($app['account']['users'])) ));

julien-c commented 9 years ago

Thanks!