]> git.mxchange.org Git - friendica.git/blobdiff - include/dba.php
Bugfix for pictures that weren't stored / reworked database calls
[friendica.git] / include / dba.php
index d6a1727d6bb9cf9865f3553cbb647d6a2e9a61df..fa33f245aeb0210c3a23030f16c4f3d72e3ceaf1 100644 (file)
@@ -672,7 +672,7 @@ class dba {
        /**
         * @brief Fetches the first row
         *
-        * Please use dba::select or dba::select whenever this is possible.
+        * Please use dba::select or dba::exists whenever this is possible.
         *
         * @param string $sql SQL statement
         * @return array first row of query
@@ -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);
 }