X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fdba.php;h=fa33f245aeb0210c3a23030f16c4f3d72e3ceaf1;hb=6d7ececc4206dd9b5dc06cdf4454a93bf54a664e;hp=9bf7a67d46de9cdc5055e7195ba97d0ce1cc8996;hpb=f8d34e35e7b720dae2bd7acf9b1d9499564c8814;p=friendica.git diff --git a/include/dba.php b/include/dba.php index 9bf7a67d46..fa33f245ae 100644 --- a/include/dba.php +++ b/include/dba.php @@ -1400,37 +1400,6 @@ function qu($sql) { return false; } -/** - * - * Raw db query, no arguments - * - */ -function dbq($sql) { - global $db; - - if ($db && $db->connected) { - $ret = $db->q($sql); - } else { - $ret = false; - } - return $ret; -} - -// Caller is responsible for ensuring that any integer arguments to -// dbesc_array are actually integers and not malformed strings containing -// SQL injection vectors. All integer array elements should be specifically -// cast to int to avoid trouble. -function dbesc_array_cb(&$item, $key) { - if (is_string($item)) - $item = dbesc($item); -} - -function dbesc_array(&$arr) { - if (is_array($arr) && count($arr)) { - array_walk($arr,'dbesc_array_cb'); - } -} - function dba_timer() { return microtime(true); }