Skip to content

Commit b81c794

Browse files
authored
Merge pull request #44 from mambax7/feature/assignment_in_condition
assignment in condition
2 parents 6b553ba + a8e8af8 commit b81c794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/TableLoad.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static function extractRows($table, $criteria = null, $skipColumns = arra
163163
$rows = array();
164164
$result = $db->query($sql);
165165
if ($result) {
166-
while ($row = $db->fetchArray($result)) {
166+
while (false !== ($row = $db->fetchArray($result))) {
167167
$rows[] = $row;
168168
}
169169
}

0 commit comments

Comments
 (0)