Fixed dashboard from crashing when RSS feed doesn't work

This commit is contained in:
nelsonlaquet 2014-01-04 23:08:47 -06:00
parent 1b6032e9e3
commit 37313a7540

View file

@ -20,6 +20,9 @@
$postHashes[] = self::calculateHash($post->get_permalink());
}
if (count($postHashes) == 0)
return [];
$seenRecords = Auth::check() ? self::where('user_id', '=', Auth::user()->id)->whereIn('post_hash', $postHashes)->get() : [];
$seenHashes = [];