From 4a70176da017ece64851680d06f9c7625c8e6cf1 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Wed, 18 Nov 2015 20:08:25 +0100 Subject: [PATCH] bugfix --- actions/qvitter.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/actions/qvitter.php b/actions/qvitter.php index 2753d72..4870e9c 100644 --- a/actions/qvitter.php +++ b/actions/qvitter.php @@ -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) {