diff options
-rwxr-xr-x | inc/poche/Poche.class.php | 3 |
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 | } |