mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-13 16:23:42 +02:00
fix: depr. warning when passing null to select() (#18)
This commit is contained in:
parent
eed7a470ed
commit
f9ec906414
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@
|
|||
$this->throw_if_no_table();
|
||||
|
||||
// Create array of columns from CSV
|
||||
$columns = is_array($columns) ? $columns : explode(",", $columns);
|
||||
$columns = is_array($columns) || is_null($columns) ? $columns : explode(",", $columns);
|
||||
|
||||
// Filter columns that aren't in the model if defiend
|
||||
if ($columns && $this->model) {
|
||||
|
|
Loading…
Add table
Reference in a new issue