aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-02-16 16:57:16 +0100
committerThomas Citharel <tcit@tcit.fr>2015-02-16 16:57:16 +0100
commit336797f309200bd535324ab161427b39ab3d7487 (patch)
tree3298cc4b747e995c27bfc2c4e17c77ac8fb9bbcc /inc/poche
parentcdee5e65701330e0b740640f471228d8b9b02a91 (diff)
downloadwallabag-336797f309200bd535324ab161427b39ab3d7487.tar.gz
wallabag-336797f309200bd535324ab161427b39ab3d7487.tar.zst
wallabag-336797f309200bd535324ab161427b39ab3d7487.zip
adapt for php < 5.4
Still not obsolete. :(
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 }