fix getting `pages_to_show` from input arguments
$pages_to_show = isset($r['pages_to_show']) ?: 5;
will return true if $r['pages_to_show'] is set.
We can use $pages_to_show = $r['pages_to_show'] ?? 5; but it's to early for php7
$pages_to_show = isset($r['pages_to_show']) ?: 5;
will return true if $r['pages_to_show'] is set.
We can use $pages_to_show = $r['pages_to_show'] ?? 5; but it's to early for php7