Skip to content

Commit 0585649

Browse files
authored
Merge pull request #1561 from nowackipawel/patch-24
Update Connection.php
2 parents 5a54e01 + cc8fdda commit 0585649

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Database/MySQLi/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ protected function prepQuery($sql)
343343
*/
344344
public function affectedRows(): int
345345
{
346-
return $this->connID->affected_rows;
346+
return $this->connID->affected_rows ?? 0;
347347
}
348348

349349
//--------------------------------------------------------------------

0 commit comments

Comments
 (0)