This commit is contained in:
Hannes Mannerheim 2015-11-18 20:08:25 +01:00
parent 14ae286aeb
commit 4a70176da0

View File

@ -253,7 +253,13 @@ class QvitterAction extends ApiAction
// Get all topics in Qvitter's namespace in Profile_prefs
if($logged_in_user) {
$qvitter_profile_prefs = Profile_prefs::getNamespace(Profile::current(),'qvitter');
try {
$qvitter_profile_prefs = Profile_prefs::getNamespace(Profile::current(),'qvitter');
} catch (Exception $e) {
$qvitter_profile_prefs = array();
}
if(count($qvitter_profile_prefs)>0) {
$topic_data = new stdClass();
foreach($qvitter_profile_prefs as $pref) {