heiseonline / shariff-backend-php

👮 PHP backend for Shariff. Shariff enables website users to share their favorite content without compromising their privacy.
http://ct.de/-2467514
133 stars 44 forks source link

[BUGFIX] Prevent fatal in case the result is not an array #117

Closed NeoBlack closed 7 years ago

NeoBlack commented 7 years ago

This patch prevents a fatal error in case the result from a service cannot be parsed and is e.g. null instead of an array. The extractCount method expects an array as parameter.

liayn commented 7 years ago

Thanks Frank for the fix. Please adjust the commit message and fix two typos.

This patch prevents a fatal error in case the result from a service
cannot be parsed and is e.g. null instead of an array.
The extractCount method expects an array as parameter.
liayn commented 7 years ago

@compeak can we still merge this one please. the change is so obvious.

compeak commented 7 years ago

Thanks.