summaryrefslogtreecommitdiff
path: root/app/Models/Configuration.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-02-23 21:55:45 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-02-23 21:55:45 +0100
commit166009f3623213249086038f7af72a76507f60dc (patch)
tree444f74b3a2d2465d9c54b65183297549528610a1 /app/Models/Configuration.php
parent86846e7b97acb44a2ea0460d7951f7ef90558afd (diff)
Sharing: Compatibility 0.7
https://github.com/marienfressinaud/FreshRSS/pull/433
Diffstat (limited to 'app/Models/Configuration.php')
-rw-r--r--app/Models/Configuration.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php
index 052e28ba8..bacb79510 100644
--- a/app/Models/Configuration.php
+++ b/app/Models/Configuration.php
@@ -182,6 +182,9 @@ class FreshRSS_Configuration {
public function _sharing ($values) {
$this->data['sharing'] = array();
foreach ($values as $value) {
+ if (!is_array($value)) {
+ continue;
+ }
if (array_key_exists('url', $value)) {
$is_url = (
filter_var ($value['url'], FILTER_VALIDATE_URL) ||