Uncaught Exception

array_rand(): Second argument has to be between 1 and the number of elements in the array

Origin

anchor/functions/articles.php on line 396

Trace

#0 [internal function]: System\Error::native(2, 'array_rand(): S...', '/home/html/mult...', 396, Array)
#1 /home/html/multi_154798/benchpress.sk/blog/anchor/functions/articles.php(396): array_rand(Array, 5)
#2 /home/html/multi_154798/benchpress.sk/blog/themes/default/article.php(162): get_onsale_product(5)
#3 /home/html/multi_154798/benchpress.sk/blog/system/view.php(87): require('/home/html/mult...')
#4 /home/html/multi_154798/benchpress.sk/blog/system/route.php(160): System\View->render()
#5 /home/html/multi_154798/benchpress.sk/blog/system/router.php(152): System\Route->run()
#6 /home/html/multi_154798/benchpress.sk/blog/system/start.php(46): System\Router->dispatch()
#7 /home/html/multi_154798/benchpress.sk/blog/index.php(35): require('/home/html/mult...')
#8 {main}