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