From 8b30732aa08c18976a085d22b2b26d4644dd1876 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 13 Apr 2016 15:01:20 +0000 Subject: [PATCH] Fix fatal error when deleting favorites --- api/src/Framework/Favorites.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/Framework/Favorites.php b/api/src/Framework/Favorites.php index d7daffb6de..f20697e91c 100644 --- a/api/src/Framework/Favorites.php +++ b/api/src/Framework/Favorites.php @@ -240,9 +240,9 @@ class Favorites $pref = $prefs->save_repository(false,$type); // Update preferences client side, or it could disappear - Api\Json\Responseget()->call('egw.set_preferences', (array)$pref[$app], $app); + Api\Json\Response::get()->call('egw.set_preferences', (array)$pref[$app], $app); - Api\Json\Responseget()->data(isset($result[$app][$pref_name])); + Api\Json\Response::get()->data(isset($result[$app][$pref_name])); return isset($result[$app][$pref_name]); } else if ($action == "delete") @@ -251,9 +251,9 @@ class Favorites $pref = $prefs->save_repository(false,$type); // Update preferences client side, or it could come back - Api\Json\Responseget()->call('egw.set_preferences', (array)$pref[$app], $app); + Api\Json\Response::get()->call('egw.set_preferences', (array)$pref[$app], $app); - Api\Json\Responseget()->data(!isset($result[$app][$pref_name])); + Api\Json\Response::get()->data(!isset($result[$app][$pref_name])); return !isset($result[$app][$pref_name]); } }