Skip to content

Commit

Permalink
Update UpdateBatch.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mavinoo authored Oct 7, 2017
1 parent 4655130 commit 1c5a5dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UpdateBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function updateBatch($table, $values, $index)
$final = array();
$ids = array();

if(count($values))
if(!count($values))
return false;
if(!isset($index) AND empty($index))
return 'Select Key for Update';
Expand Down Expand Up @@ -66,4 +66,4 @@ public function updateBatch($table, $values, $index)

return DB::statement($query);
}
}
}

0 comments on commit 1c5a5dc

Please sign in to comment.