]> git.mxchange.org Git - friendica.git/blobdiff - mod/proxy.php
Rename selectOne to selectFirst
[friendica.git] / mod / proxy.php
index 792d0ffbcab7ef00968dc7f569f092285a3fc339..80a84a165fc3cf84a38d7849a45b432bf0fe72cb 100644 (file)
@@ -148,7 +148,7 @@ function proxy_init(App $a) {
        $r = array();
 
        if (!$direct_cache && ($cachefile == '')) {
-               $r = dba::selectOne('photo', ['data', 'desc'], ['resource-id' => $urlhash]);
+               $r = dba::selectFirst('photo', ['data', 'desc'], ['resource-id' => $urlhash]);
                if (DBM::is_result($r)) {
                        $img_str = $r['data'];
                        $mime = $r['desc'];