From: Thomas Citharel Date: Mon, 16 Feb 2015 15:57:16 +0000 (+0100) Subject: adapt for php < 5.4 X-Git-Tag: 1.9.1alpha1~15^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=336797f309200bd535324ab161427b39ab3d7487;p=github%2Fwallabag%2Fwallabag.git adapt for php < 5.4 Still not obsolete. :( --- 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 case 'random': Tools::logm('get a random article'); if ($this->store->getRandomId($this->user->getId())) { - $id = $this->store->getRandomId($this->user->getId())[0]; + $id_array = $this->store->getRandomId($this->user->getId()); + $id = $id_array[0]; Tools::redirect('?view=view&id=' . $id[0]); Tools::logm('got the article with id ' . $id[0]); }