Skip to content

Commit

Permalink
[+]: optimize "DB->escape()"
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Mar 15, 2017
1 parent f1fa8f7 commit 8fc2f5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/voku/db/DB.php
Expand Up @@ -623,6 +623,10 @@ public function secure($var)
*/
public function escape($var = '', $stripe_non_utf8 = true, $html_entity_decode = false, $convert_array = false)
{
if ($var === '') {
return '';
}

if ($var === null) {
return null;
}
Expand Down

0 comments on commit 8fc2f5a

Please sign in to comment.