From 0efdc08f41aa4e5e06136c60e4a031d83b3452f7 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 27 Feb 2017 12:46:50 -0800 Subject: fixy --- controllers/controllers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/controllers.php b/controllers/controllers.php index 90c229a..2491081 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -443,7 +443,7 @@ $app->post('/favorite', function() use($app) { $error = false; - if(isset($params['edit'])) { + if(isset($params['edit']) && $params['edit']) { $r = edit_favorite($user, $params['edit'], $params['like_of']); if(isset($r['location']) && $r['location']) $location = $r['location']; -- cgit v1.2.3