From c2abf0aeeab6aa15545bea436fc68ad3d997f0bb Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 3 Feb 2014 23:06:12 +0100 Subject: [PATCH 1/2] oembed: There seems to be some bug with ombed (maybe passing a non working url) This small fix should avoid the error at this place and may directs to the source of the problem. --- include/oembed.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/oembed.php b/include/oembed.php index 982f659d8..ee042f8ce 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -62,6 +62,10 @@ function oembed_fetch_url($embedurl){ } $j = json_decode($txt); + + if (!is_object($j)) + return false; + $j->embedurl = $embedurl; return $j; } From 254f1c3acc3c191aca3533c6fbe32fbd5a65a018 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 3 Feb 2014 23:22:37 +0100 Subject: [PATCH 2/2] Added two fields in the database.sql that were added via update. --- database.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database.sql b/database.sql index 163ad5141..92805ef00 100644 --- a/database.sql +++ b/database.sql @@ -184,6 +184,8 @@ CREATE TABLE IF NOT EXISTS `contact` ( `profile-id` int(11) NOT NULL DEFAULT '0' COMMENT 'which profile to display - 0 is public default', `bdyear` char(4) NOT NULL COMMENT 'birthday notify flag', `bd` date NOT NULL, + `notify_new_posts` TINYINT(1) NOT NULL DEFAULT '0', + `fetch_further_information` TINYINT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `uid` (`uid`), KEY `self` (`self`),