diff --git a/src/MySQL.php b/src/MySQL.php index e62c7af..a22ef68 100644 --- a/src/MySQL.php +++ b/src/MySQL.php @@ -140,7 +140,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) {