Browse Source

fallback dbesc() when db is not there

pull/1/head
Friendika 12 years ago
parent
commit
cb1832a755
  1. 5
      include/dba.php

5
include/dba.php

@ -114,7 +114,10 @@ function dbg($state) {
if(! function_exists('dbesc')) {
function dbesc($str) {
global $db;
return($db->escape($str));
if($db)
return($db->escape($str));
else
return(str_replace("'","\\'",$str));
}}

Loading…
Cancel
Save