Skip to content

Commit 1c5a5dc

Browse files
authored
Update UpdateBatch.php
1 parent 4655130 commit 1c5a5dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UpdateBatch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function updateBatch($table, $values, $index)
3737
$final = array();
3838
$ids = array();
3939

40-
if(count($values))
40+
if(!count($values))
4141
return false;
4242
if(!isset($index) AND empty($index))
4343
return 'Select Key for Update';
@@ -66,4 +66,4 @@ public function updateBatch($table, $values, $index)
6666

6767
return DB::statement($query);
6868
}
69-
}
69+
}

0 commit comments

Comments
 (0)