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'];