Skip to content

Commit 5cd9c52

Browse files
Added a missing [] for get_row 2nd parameter
1 parent b6462f8 commit 5cd9c52

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Skeleton/Database/Driver/Mysqli/Proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ private function get_statement($query, $params = []) {
394394
* @return array $result The resulting associative array
395395
* @throws Exception Throws an Exception when there is more than one row in a resultset
396396
*/
397-
public function get_row($query, $params) {
397+
public function get_row($query, $params = []) {
398398
$statement = $this->get_statement($query, $params);
399399
$statement->execute();
400400

lib/Skeleton/Database/Driver/Pdo/Proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ private function get_statement($query, $params = []) {
474474
* @return array $result The resulting associative array
475475
* @throws Exception Throws an Exception when there is more than one row in a resultset
476476
*/
477-
public function get_row($query, $params) {
477+
public function get_row($query, $params = []) {
478478
$statement = $this->get_statement($query, $params);
479479
$statement->execute();
480480

lib/Skeleton/Database/Driver/ProxyBaseInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function get_one($query, $params = []);
152152
* @return array $result The resulting associative array
153153
* @throws Exception Throws an Exception when there is more than one row in a resultset
154154
*/
155-
public function get_row($query, $params);
155+
public function get_row($query, $params = []);
156156

157157
/**
158158
* Get the first column of the resultset

0 commit comments

Comments
 (0)