summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/controllers.php2
1 files changed, 1 insertions, 1 deletions
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'];