diff --git a/src/MySQL.php b/src/MySQL.php index f4b5c7d..2d4a937 100644 --- a/src/MySQL.php +++ b/src/MySQL.php @@ -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) {