From 65061046bd8aab184b07d00a6e8681bdee300d8a Mon Sep 17 00:00:00 2001 From: William Knauss Date: Thu, 5 Jun 2014 20:32:55 -0400 Subject: [PATCH] __construct --- parsecsv.lib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 158ee26..08d7e01 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -351,23 +351,23 @@ class parseCSV { * @param [string] conditions Basic SQL-like conditions for row matching */ public function __construct ($input = null, $offset = null, $limit = null, $conditions = null, $keep_file_data = null) { - if ( $offset !== null ) { + if (!is_null($offset)) { $this->offset = $offset; } - if ( $limit !== null ) { + if (!is_null($limit)) { $this->limit = $limit; } - if ( !is_null($conditions) ) { + if (!is_null($conditions)) { $this->conditions = $conditions; } - if ( !is_null($keep_file_data) ) { + if (!is_null($keep_file_data)) { $this->keep_file_data = $keep_file_data; } - if ( !empty($input) ) { + if (!empty($input)) { $this->parse($input); } }