From 2333fda8df0948a4af315b545a8b9b4ee2cfb2ad Mon Sep 17 00:00:00 2001 From: ruan Date: Mon, 15 Jun 2020 13:43:36 +0200 Subject: [PATCH] Minor code inspection cleanup --- inc/page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/page.php b/inc/page.php index b4939fa..c013120 100644 --- a/inc/page.php +++ b/inc/page.php @@ -169,6 +169,7 @@ class Page { return $rows; } catch (PDOException $ex) { Settings::handle_error($this->settings, $ex); + return array(); } } @@ -194,8 +195,7 @@ class Page { array_push($columns, "CAST($column AS UNSIGNED) AS $column"); } } - $selection = implode(",", $columns); - return $selection; + return implode(",", $columns); } /**