aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-12-30 11:32:20 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-12-30 11:32:53 +0100
commite82160e5e96fb6d42c4d4d0bbffb1b4ce140f4c5 (patch)
tree85fb19b2ca61632e3971adbab19457990c52363d /src
parente6a228c43bf98f64d2d046314bae224c5b87399e (diff)
downloadwallabag-e82160e5e96fb6d42c4d4d0bbffb1b4ce140f4c5.tar.gz
wallabag-e82160e5e96fb6d42c4d4d0bbffb1b4ce140f4c5.tar.zst
wallabag-e82160e5e96fb6d42c4d4d0bbffb1b4ce140f4c5.zip
Fix wrong if when deleting an entry
Bad condition when deleting an entry returned `true` instead of the referer url
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 2f3fd6a9..b437e029 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -347,7 +347,7 @@ class EntryController extends Controller
347 ); 347 );
348 348
349 // don't redirect user to the deleted entry 349 // don't redirect user to the deleted entry
350 return $this->redirect($url !== $request->headers->get('referer') ?: $this->generateUrl('homepage')); 350 return $this->redirect($url !== $request->headers->get('referer') ? $request->headers->get('referer') : $this->generateUrl('homepage'));
351 } 351 }
352 352
353 /** 353 /**