Better typing and minor fixes to OStatus related stuff

This commit is contained in:
Mikael Nordfeldth
2013-11-01 13:20:23 +01:00
parent 810495708d
commit ca66860a4f
6 changed files with 42 additions and 36 deletions

View File

@@ -133,7 +133,7 @@ class FeedSub extends Managed_DataObject
public static function ensureFeed($feeduri)
{
$current = self::getKV('uri', $feeduri);
if ($current) {
if ($current instanceof FeedSub) {
return $current;
}
@@ -154,7 +154,7 @@ class FeedSub extends Managed_DataObject
$feedsub->modified = common_sql_now();
$result = $feedsub->insert();
if (empty($result)) {
if ($result === false) {
throw new FeedDBException($feedsub);
}