aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-02-17 11:03:31 +0100
committerThomas Citharel <tcit@tcit.fr>2015-02-17 11:03:31 +0100
commitaa245deedc74cf46e993c028635b278e2ca6e071 (patch)
treea560d8755693b42b2651ffe6d340dec39b046c1f /inc/poche
parentd61e86a3d38e3d0c84718858a42741e5a13ec328 (diff)
parent336797f309200bd535324ab161427b39ab3d7487 (diff)
downloadwallabag-aa245deedc74cf46e993c028635b278e2ca6e071.tar.gz
wallabag-aa245deedc74cf46e993c028635b278e2ca6e071.tar.zst
wallabag-aa245deedc74cf46e993c028635b278e2ca6e071.zip
Merge branch 'dev' of github.com:wallabag/wallabag into dev
Diffstat (limited to 'inc/poche')
-rwxr-xr-xinc/poche/Poche.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 481382ec..9424e3ff 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -395,7 +395,8 @@ class Poche
395 case 'random': 395 case 'random':
396 Tools::logm('get a random article'); 396 Tools::logm('get a random article');
397 if ($this->store->getRandomId($this->user->getId())) { 397 if ($this->store->getRandomId($this->user->getId())) {
398 $id = $this->store->getRandomId($this->user->getId())[0]; 398 $id_array = $this->store->getRandomId($this->user->getId());
399 $id = $id_array[0];
399 Tools::redirect('?view=view&id=' . $id[0]); 400 Tools::redirect('?view=view&id=' . $id[0]);
400 Tools::logm('got the article with id ' . $id[0]); 401 Tools::logm('got the article with id ' . $id[0]);
401 } 402 }