Skip to content

Commit

Permalink
Dev: Greater or equal to, just to be safe, although it should never b…
Browse files Browse the repository at this point in the history
…e greater than
  • Loading branch information
AllanJard committed Jul 26, 2019
1 parent 2fe6a9e commit c2d2aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ private function _process( $data )
$validators = $this->_validator;

// Sanity check that data isn't getting truncated as that can lead to data corruption
if ( count($data, COUNT_RECURSIVE) == ini_get('max_input_vars') ) {
if ( count($data, COUNT_RECURSIVE) >= ini_get('max_input_vars') ) {
$this->_out['error'] = 'Too many rows edited at the same time (tech info: max_input_vars exceeded).';
}

Expand Down

0 comments on commit c2d2aea

Please sign in to comment.