diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 57bc098..72e764d 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -974,11 +974,17 @@ class parseCSV { /** * Validates if the row is within the offset or not if sorting is disabled + * + * @access public * @param current_row the current row number being processed + * * @return true of false */ - function _validate_offset ($current_row) { - if ( $this->sort_by === null && $this->offset !== null && $current_row < $this->offset ) return false; + public function _validate_offset ($current_row) { + if ( $this->sort_by === null && $this->offset !== null && $current_row < $this->offset ) { + return false; + } + return true; }