Skip to content

Commit 60a163a

Browse files
committed
Remove unnecessary Db::escape_string on empty string literal
Use a simple '' instead of Db::escape_string("") for the empty description value in the INSERT statement.
1 parent 5194518 commit 60a163a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

okapi/services/caches/save_user_coords/WebService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private static function update_coordinates($cache_id, $user_id, $latitude, $long
9292
'".Db::escape_string($longitude)."',
9393
'".Db::escape_string($cache_id)."',
9494
'".Db::escape_string($user_id)."',
95-
'".Db::escape_string("")."'
95+
''
9696
)
9797
");
9898
} else {

0 commit comments

Comments
 (0)