@@ -130,7 +130,9 @@ discard block |
||
130 | 130 | $this->error($this->conn->errorCode() . ': ' . $this->conn->errorInfo()[2]); |
131 | 131 | } |
132 | 132 | |
133 | - if (!$this->success) return; |
|
133 | + if (!$this->success) { |
|
134 | + return; |
|
135 | + } |
|
134 | 136 | |
135 | 137 | if ((!$pdoStatement) or (empty($pdoStatement))) { |
136 | 138 | // A failed query. |
@@ -180,8 +182,9 @@ discard block |
||
180 | 182 | * @param string $column_name |
181 | 183 | */ |
182 | 184 | public function field($row_index, $column_name) { |
183 | - if ($this->rows > 0) |
|
184 | - return $this->data[$row_index][$column_name]; |
|
185 | + if ($this->rows > 0) { |
|
186 | + return $this->data[$row_index][$column_name]; |
|
187 | + } |
|
185 | 188 | return ""; |
186 | 189 | } |
187 | 190 | |
@@ -196,8 +199,9 @@ discard block |
||
196 | 199 | * @param integer $row_index |
197 | 200 | */ |
198 | 201 | public function row($row_index) { |
199 | - if ($this->success && $this->rows > 0) |
|
200 | - return $this->data[$row_index]; |
|
202 | + if ($this->success && $this->rows > 0) { |
|
203 | + return $this->data[$row_index]; |
|
204 | + } |
|
201 | 205 | return array(); |
202 | 206 | } |
203 | 207 |