mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-14 00:33:41 +02:00
fix: depr. warning when passing null to select()
This commit is contained in:
parent
13720e772e
commit
14c94e10f4
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@
|
||||||
$this->throw_if_no_table();
|
$this->throw_if_no_table();
|
||||||
|
|
||||||
// Create array of columns from CSV
|
// 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
|
// Filter columns that aren't in the model if defiend
|
||||||
if ($columns && $this->model) {
|
if ($columns && $this->model) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue