Skip to content

Commit 4f629eb

Browse files
committed
Fix PHP notices and warning
1 parent 723052c commit 4f629eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TgDatabase/Database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ protected function configureConnection() {
7373
* @return string the escaped string
7474
*/
7575
public function escape($s) {
76+
if ($s == NULL) return NULL;
7677
return $this->con->real_escape_string($s);
7778
}
7879

0 commit comments

Comments
 (0)