diff --git a/database.sql b/database.sql index 163ad51410..92805ef001 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`), diff --git a/include/oembed.php b/include/oembed.php index 982f659d8e..ee042f8ce9 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; }